home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mint108s.zoo / changes < prev    next >
Encoding:
Text File  |  1993-08-04  |  93.1 KB  |  2,655 lines

  1. Changes are listed in *reverse* order, most recent changes being
  2. first.
  3.  
  4. version 1.08
  5.  
  6. dosfile.c,dosdir.c,filesys.c:
  7.     Made the file and directory operations re-entrant, by replacing
  8.     the global variable "temp1" with local variables (where needed).
  9. dosdir.c,filesys.c: ++schwab@ls5.informatik.uni-dortmund.de
  10.     Cleaned up the directory closing functions.
  11. dosmem.c: ++schwab@ls5.informatik.uni-dortmund.de
  12.     Fixed a bug in do_vfork (the child's PROC structure could be
  13.     freed when signals are checked for, and the old code wasn't
  14.     prepared for that).
  15. purec\*.*: ++reschke@math.uni-muenster.de
  16.     Updated for the new version of MiNT.
  17. *.*: ++alex@falcon.demon.co.uk
  18.     Lots of fixes to get rid of warnings and some small optimizations.
  19. dosmem.c,procfs.c: ++reschke@math.uni-muenster.de
  20.     In Pexec, save the name and arguments a process was started with
  21.     into the PROC structure, so that they can be recovered at run time.
  22. filesys.c,main.c,unifs.c: ++Ulrich Kuehn
  23.     At boot time, load files called *.xdd which contain external
  24.     device drivers.
  25.     Also, provide Dcntl calls for drive U: to allow installing and
  26.     de-installing file systems at run time.
  27. bios.c: ++nox@jelal.north.de
  28.     Only busy-wait for the parallel port, not for serial ports.
  29. unifs.c: ++schwab@ls5.informatik.uni-dortmund.de
  30.     Pass Dcntl commands along to file systems.
  31. signal.c: ++schwab@ls5.informatik.uni-dortmund.de
  32.     Make Fselect interruptable.
  33. procfs.c: ++schwab@ls5.informatik.uni-dortmund.de
  34.     Check for illegal signal numbers in ioctl(PTRACEGO,...).
  35. dosdir.c:
  36.     Fattrib should have been following links.
  37. *.spp: ++Claus Brod and Uwe Seimet
  38.     Various optimizations
  39.  
  40. version 1.07
  41.  
  42. debug.c: ++reschke@math.uni-muenster.de
  43.     Translated the German "FATAL ERROR" message.
  44. intr.spp:
  45.     The bus error handler shouldn't use 68030 MMU instructions unless
  46.     it is on a 68030. (Thanks to Stephen Henson for catching this.)
  47.  
  48. version 1.06
  49.  
  50. bios.c: ++akiernan@cix.compulink.co.uk
  51.     Fixed a bug with Bconout and TOS 1.02.
  52. dosmem.c:
  53.     Bug fix: Pexec mode 4 should cause the child to inherit its parent's
  54.     memory.
  55. filesys.c:
  56.     if disk_changed() detects an invalid drive, return EDRIVE from
  57.     it and also from path2cookie().
  58. main.c:
  59.     Fixed the PRN= line in mint.cnf (it was redirecting AUX:, not
  60.     PRN:).
  61. xbios.c:
  62.     Made Dosound() automatically grant supervisor access to the
  63.     region the sound is in.
  64. debug.c:
  65.     Make the "FATAL ERROR" message multilingual, and also less
  66.     confusing if debugging information is not provided.
  67. timeout.c,main.c:
  68.     Make the addtimeout() and canceltimeout() functions available
  69.     for device drivers.
  70. signal.c: ++schwab@ls5.informatik.uni-dortmund.de
  71.     Reduce the amount of space needed for signal calls (we were
  72.     being overly cautious on that),
  73. dosmem.c: ++akiernan@falcon.demon.co.uk
  74.     Make sure that the text segment in which a process will be
  75.     executing is attached to that process when it is started with
  76.     a Pexec (4,...).
  77. asmtrans: ++robert.wilhelm@physik.tu-muenchen.de
  78.     Enhanced to accept some 68030 specific addressing modes.
  79. proc.c:
  80.     Removed the save/restore of the logical screen pointer for the
  81.     MultiTOS kernel (this causes problems on a Falcon, since if the
  82.     AES changes resolution its parent process may be left with a
  83.     logical screen pointer pointing at invalid memory). 
  84. bios.c: ++robert.wilhelm@physik.tu-muenchen.de
  85.     Some small optimizations.
  86. biosfs.c:
  87.     Fcntl() was not interacting properly with rsconf(), so that
  88.     setting baud rates via Fcntl didn't work.
  89. dosfile.c:
  90.     Fforce() should return 0 on success.
  91. context.spp,cpu.spp: ++julian@math.uni-muenster.de
  92.     Patches for PureC.
  93. intr.spp: ++Robert.Wilhelm@Physik.TU-Muenchen.DE
  94.     Small optimization: no return value is needed for spl().
  95.  
  96. version 1.05
  97.  
  98. main.c: ++hyc@hanuama.jpl.nasa.gov
  99.     A better Falcon BIOS fix: if we're on a broken Falcon, turn
  100.     off Bconmap completely.
  101. various places: ++hohmuth@freia.inf.tu-dresden.de
  102.     Applied Michael's patch to make MiNT compile with PureC and
  103.     the MiNT library.
  104. memprot.c: ++schwab@lamothe.informatik.uni-dortmund.de
  105.     Fixed a bug in prot_temp (the cookie values weren't being
  106.     parsed out correctly). Also, added "const" where appropriate.
  107. dosfile.c: ++schwab@lamothe.informatik.uni-dortmund.de
  108.     Fixed some places where the fdflags[] for file handles
  109.     wasn't be set up correctly (default is 0 for std handles,
  110.     FD_CLOEXEC for non-std).
  111. cpu.spp,main.c: ++schwab@lamothe.informatik.uni-dortmund.de
  112.     Saved the MMU context when starting MiNT, so that we can
  113.     restore it again afterwards (and thus exit MiNT gracefully).
  114. main.c: ++julian@math.uni-muenster.de
  115.     Supplied a PMMU cookie if memory protection is on; if a PMMU
  116.     cookie already exists, don't do memory protection.
  117. fasttext.c: ++nox@jelal.north.de
  118.     Added ESC-t support to the fasttext device.
  119. bios.c: ++nox@jelal.north.de
  120.     Some modem port TSRs also don't return the correct value from
  121.     Bconout.
  122. dos.c:
  123.     Made Tsettime() and Tsetdate() available only to the super user.
  124. various places: ++akiernan@cix.compulink.co.uk,++julian@math.uni-muenster.de
  125.     Portability fixes to make the code compile with PureC and
  126.     Lattice C; also, Alex fixed up the cache clearing code.
  127. tosfs.c: ++schwab@lamothe.informatik.uni-dortmund.de
  128.     Fixed a bug in the NEWWAY code (during disk change, don't
  129.     free file cookies that may be in use).
  130. context.spp: ++seimet@rhrk.uni-kl.de
  131.     In the restore context code, touch the page containing the
  132.     (new) supervisor stack pointer before switching stack pointers.
  133.     Otherwise, if the page is not resident (a 3rd party virtual
  134.     memory system has swapped it out) then the resulting
  135.     bus error is fatal.
  136. tosfs.c: ++akiernan@cix.compulink.co.uk
  137.     Fixed a bug that could cause crashes on disk changes (the
  138.     'open' field was an integer for directories).
  139. rendez.c, mem.c: ++Martin_Koehling@un.maus.de
  140.     Fixed some memory leaks (semaphores weren't freed after being
  141.     destroyed, and if load_and_reloc failed then the memory
  142.     allocated for the shared text region wasn't freed).
  143. procfs.c:
  144.     When tracing is cancelled for a process with PTRACESFLAGS,
  145.     start the process again by sending it SIGCONT.
  146. procfs.c: ++schwab@lamothe.informatik.uni-dortmund.de
  147.     Don't allow processes to be removed by a different user.
  148. signal.c:
  149.     Fixed the debug tracing code so that SIGCONT doesn't stop
  150.     a process, even if it is being traced.
  151. procfs.c:
  152.     Dpathconf was returning the wrong value (8 instead of 12 -- it
  153.     wasn't taking the pid number extension into account).
  154.  
  155. version 1.04
  156.  
  157. bios.c:
  158.     Changed the way timeout worked for Bconout() stuff (basically,
  159.     rewrote the code so that it really does work -- the old code
  160.     used the system clock in timeout.c, which doesn't get updated
  161.     if no context switches are happening; the new code uses the
  162.     200hz counter, which is always updated).
  163. proc.h:
  164.     Increased the number of Fsfirst searches that can happen
  165.     simultaneously to 10 from 6 (this is a per-process
  166.     limit, not system wide).
  167.  
  168. version 1.03
  169.  
  170. xbios.c: ++entropy@terminator.rs.itd.umich.edu
  171.     In old versions of TOS, Rsconf could get stuck waiting for the
  172.     transmit buffer to empty if flow control was on. Added a timeout.
  173. dos.c:
  174.     Changed Psetpgrp so that passing a pgrp of -1 makes it into
  175.     an inquiry call.
  176. filesys.c: ++Martin_Koehling@un.maus.de
  177.     Fixed a bug in Flock (regions were being locked 1 byte too far).
  178. mem.h:
  179.     Changed the memory allocation quantum to 256 bytes, so that
  180.     Srealloc will always work right on ST's.
  181.  
  182. version 1.02
  183.  
  184. main.c:
  185.     Run any AUTO folder programs appearing after MINTNP.PRG
  186.     as well as just plain MINT.PRG.
  187. syscall.spp:
  188.     Pop more stuff off the stack in sig_return, since we
  189.     did push more onto it in handle_sig. (It really shouldn't
  190.     matter, restore_context will restore the stack pointer
  191.     anyway, but better safe than sorry.)
  192. filesys.c,mem.c:
  193.     Made the open file associated with shared text memory
  194.     regions be closed automatically when a media change occurs.
  195. xbios.c:
  196.     Changed the do_usrcall function into an assembly language
  197.     routine which preserves all registers. Apparently some
  198.     programs rely on being able to pass parameters to Supexec
  199.     in registers. We only used to kill register A0, which was
  200.     reserved for BIOS use anyway, but obviously some programmers
  201.     choose not to read the f'ing manual.
  202. dosdir.c: ++entropy@terminator.rs.itd.umich.edu
  203.     Fixed a typo (PATH_MAX where ERANGE should have been).
  204. biosfs.c: ++schwab@lamothe.informatik.uni-dortmund.de
  205.     Check control keys on every newline, so users get quick response
  206.     to their key hits.
  207. tty.c: ++schwab@lamothe.informatik.uni-dortmund.de
  208.     Fixed a typo (t_startc is the character to use to resume terminal
  209.     output, not t_stopc!)
  210. dosdir.c,dosmem.c,filesys.c,tosfs.c: ++schwab@lamothe.informatik.uni-dortmund.de
  211.     Fixed many dup_cookie and release_cookie bugs; the code should be much
  212.     more usable now.
  213. main.c:
  214.     Corrected a flaw in the 68030 only version -- it assumed that
  215.     68030 was synonymous with memory protection. Also: set
  216.     mcpu correctly.
  217. main.c:
  218.     Checked to see if we're called "MINTNP.PRG"; if so, turn off
  219.     memory protection automatically. Commented out the code
  220.     for automatically turning MP off on 1 meg machines.
  221.  
  222. version 1.01
  223.  
  224. main.c,intr.spp:
  225.     Use init_tail for the temporary stack (saves us 128 bytes of bss,
  226.     oh boy).
  227. main.c:
  228.     If less than 1 megabyte is free, turn off memory protection
  229.     automatically.
  230. mem.h:
  231.     If there's no memory protection, do all ROUNDing etc. to
  232.     16 byte boundaries rather than 8K page boundaries.
  233. mem.c:
  234.     Added a check for the ability to move screen RAM; evidently
  235.     some boards use ST RAM but still don't allow Setscreen()
  236.     to work.
  237. all over the place: ++julian@math.uni-muenster.de
  238.     Cleaned up the code for PureC compatibility.
  239. all over the place: ++akiernan@cix.compulink.co.uk
  240.     Cleaned up the code for Lattice compatibility.
  241. fasttext.c: ++hyc@hanauma.jpl.nasa.gov
  242.     Sped up by special casing some of the gotoxy() calls, and
  243.     also allowed 8 pixel high characters in monochrome mode.
  244. dosdir.c: ++schwab@lamothe.informatik.uni-dortmund.de
  245.     Allow Frename() to succeed on symbolic links.
  246. signal.c: ++schwab@lamothe.informatik.uni-dortmund.de
  247.     Save processor context stuf in the reserved BIOS area even for
  248.     bus errors with memory protection on.
  249. dosfile.c: ++schwab@lamothe.informatik.uni-dortmund.de
  250.     Initialize the exception file descriptors to 0, in anticipation
  251.     of future use of this Fselect feature.
  252. dosfile.c: ++schwab@lamothe.informatik.uni-dortmund.de
  253.     Allow pipes to be opened and written to with O_APPEND mode.
  254. version.h:
  255.     Got rid of the PATCHLEVEL define. Now that I've finally
  256.     checked everything into RCS, it's much easier to just bump
  257.     up the version numbers on each release.
  258.  
  259. version 1.00
  260.  
  261. welcome.c,version.h:
  262.     Sigh. This is MultiTOS 1.0's MiNT, so even though I don't
  263.     consider it "finished", I'm changing the version number to
  264.     1.0. At least it's no worse than TOS 1.0 :-).
  265. memprot.c:
  266.     We want to flush the ATC cache, *not* the CPU cache. Thanks
  267.     for pointing this out, Alex.
  268. bios.c:
  269.     Fixed a problem with Speedo GDOS; if the printer's buffer was
  270.     full, Bconout(2,...) would do a context switch, which is not
  271.     a good thing for Speedo.
  272.  
  273. version 0.99
  274.  
  275. PATCHLEVEL 2::
  276.  
  277. main.c:
  278.     Big bug fix -- the do_exec_os routine was being called with a
  279.     basepage that occupied all of memory, so that the Pexec(200) it
  280.     did was failing due to insufficient memory. Now we Mshrink the
  281.     basepage; this also necessitates fixing up the stack pointer.
  282. main.c:
  283.     Handle mint.cnf files that don't end in a carriage return/line feed
  284.     combination.
  285. filesys.c:
  286.     New path parsing code to correct a bug in the way symbolic
  287.     links were being handled on loadable file systems.
  288.  
  289. PATCHLEVEL 1::
  290.  
  291. debug.c:
  292.     Made the default debugging level give ALERT messages.
  293. dosfile.c:
  294.     Corrected a bug in the way global file handles are closed.
  295.  
  296. PATCHLEVEL 0::
  297.  
  298. dosmem.c:
  299.     Made it so that overlay Pexec modes (e.g. 200) set up
  300.     the basepage to preserve the same "parent".
  301. main.c:
  302.     Added in a kludge so that if we're starting GEM from a file
  303.     (e.g. gem.sys) then we do it via the exec_os vector. I hope
  304.     this makes the Codeheads happy :-).
  305. dosmem.c,tty.c:
  306.     Backed out entropy's and schwab's changes. Random programs
  307.     were getting stopped under MultiTOS because of them; I can't
  308.     find the cause, so let's go back to something that worked
  309.     (if suboptimally).
  310. main.c:
  311.     Fixed a silly initialization error: we should not
  312.     assume a default language, we should get it from
  313.     the ROMs.
  314. dosdir.c: ++julian@math.uni-muenster.de
  315.     Extended Dlock: if bit 1 of the mode is set, then the
  316.     process id of the process using the drive is returned
  317.     instead of ELOCKED or EACCDN; this allows for more
  318.     informative error messages.
  319. welcome.c:
  320.     Updated the copyright notice.
  321.  
  322. version 0.98
  323.  
  324. PATCHLEVEL 4::
  325.  
  326. dosmem.c,tty.c: ++entropy@gnu.ai.mit.edu
  327.     Corrected some silliness in the job control code.
  328.  
  329. PATCHLEVEL 3::
  330.  
  331. xbios.c:
  332.     Took out the ONLY030 optimization; it didn't work correctly
  333.     (I can't see any reason why it shouldn't have worked, but
  334.     it didn't; perhaps a compiler bug bit us?)
  335.  
  336. PATCHLEVEL 2::
  337.  
  338. main.c:
  339.     Changed magic shift key to LEFT shift key.
  340. filesys.c:
  341.     Make loaded .XFS files go into supervisor accessible
  342.     memory.
  343. welcome.c,main.c:
  344.     Ask user in her own language whether or not to boot if the
  345.     kernel is a MultiTOS one and she held down the shift key.
  346. filesys.c:
  347.     Relax O_COMPAT mode opens somewhat so that any
  348.     number of processes can open the file for reading,
  349.     as long as no more than 1 has it open for writing.
  350.     ALSO: make sure O_EXEC gets treated the same as O_RDONLY.
  351. dosfile.c:
  352.     Change TRACE() to TRACELOW() on Fread and Fwrite.
  353. tosfs.c:
  354.     Went back to old method of doing tosfs.c; this is
  355.     better tested and safer.
  356. dos.c:
  357.     New system call, Salert(msg), for doing an alert message.
  358. debug.c:
  359.     Terminate messages written to the alert pipe with a 0.
  360.     Also: pour them into alert boxes so that programs like
  361.     sysalert don't have so much to do.
  362.  
  363. PATCHLEVEL 1::
  364.  
  365. fasttext.c: ++shenson
  366.     Corrected the quote_putch function.
  367. dosdir.c:
  368.     Allow Dfree(n) to work if "n" is a big number (e.g. BIOSDRV)
  369.     and the corresponding pseudo-drive is a current or root directory
  370.     of the current process.
  371. pipefs.c: ++schwab@ls5.informatik.uni-dortmund.de
  372.     Return a new error number, EPIPE, for writes to broken pipes.
  373. tty.c: ++schwab@ls5.informatik.uni-dortmund.de
  374.     If a tty loses its owner, the next process to do i/o to it
  375.     will become the owner.
  376. dosfile.c: ++schwab@ls5.informatik.uni-dortmund.de
  377.     FA_RDONLY doesn't mean "read only" on the process file system,
  378.     so allow such processes to be opened for writing.
  379.  
  380. PATCHLEVEL 0::
  381.  
  382. xbios.c:
  383.     Fixed Supexec to pass the function pointer on the stack, too
  384.     (just as TOS does). This is still undocumented behaviour,
  385.     so you rely on it at your own risk.
  386. xbios.c: ++entropy@gnu.ai.mit.edu
  387.     Applied a fix for Rsconf() with TOS 1.04, and made the
  388.     old TOS Rsconf stuff #ifndef ONLY030.
  389. proc.c,dosmem.c:
  390.     Wrap all calls to add_q/rm_q in spl7(), so that the
  391.     wakeselect() function truly can be called from
  392.     interrupt code.
  393. makefile,*.spp:
  394.     Make provisions for compiling an 030/040 only version
  395.     of MiNT; this should be faster and smaller than the
  396.     generic version.
  397. version.h:
  398.     The file system interface changes warrant a new version
  399.     number, so here it is.
  400.  
  401. version 0.97
  402.  
  403. PATCHLEVEL 3::
  404.  
  405. dosdir.c,proc.c:
  406.     Keep a chain of open directories, so that if a program
  407.     terminates without calling closedir() we can still clean
  408.     up after it. Also: allocate directory structures from
  409.     kernel memory rather than user memory, so that we don't
  410.     take an 8K hit on each one. PROBLEM: a bug in the mntlib
  411.     readdir() function causes bus errors if memory protection
  412.     is on. This is a library bug that needs to be fixed
  413.     real soon now.
  414. dosmem.c:
  415.     TSRs now get forced into global memory if they were running
  416.     privately; this should make things easier for users who
  417.     forgot to change prgflags on their TSR programs.
  418. filesys.c:
  419.     New meaning for O_COMPAT mode: deny write access to all other
  420.     processes.
  421. tosfs.c:
  422.     Added a define to turn on/off the RO_FASCISM code. Personally,
  423.     I think it should always be on.
  424. dosdir.c,filesys.c,file.h,*fs.c:
  425.     New file system functions, release() and dupcookie(), so that
  426.     the kernel can inform file systems when it is finished
  427.     with a file cookie; networked file systems will be very
  428.     happy about this.
  429.  
  430. PATCHLEVEL 2::
  431.  
  432. procfs.c:
  433.     Moved the memory protection checks for proc_read and
  434.     proc_write to a separate function in memprot.c.
  435. dosfile.c:
  436.     Remove the old compatibility code for Fcntl(F_SETFL,...).
  437.     (Actually, it's commented out, so we can put it back in
  438.     if we need to.)
  439. signal.c:
  440.     Change default behaviour for SIGFPE (which is raised
  441.     by division by 0) to "ignore", same as TOS.
  442. dosdir.c:
  443.     Made Dgetcwd() use the new size parameter, so that it
  444.     works as advertised.
  445. file.h, *fs.c:
  446.     Provide a "size" parameter for the getname() file system
  447.     function, so that we can do Dgetpath() of arbitrary length
  448.     paths.
  449. util.c:
  450.     BIG_MEM_DUMP is a nasty thing for users to get;
  451.     so we shouldn't do it on all failed mallocs!
  452.  
  453. PATCHLEVEL 1::
  454.  
  455. proc.c:
  456.     Plugged a memory leak (dispose_proc was failing to
  457.     free the process table memory, because fork_proc
  458.     was zeroing that field in the PROC structure).
  459. main.c:
  460.     Fixed MAXMEM= (it was setting the maximum CPU time,
  461.     not the maximum memory -- I thought I tested this!)
  462.  
  463. PATCHLEVEL 0::
  464.  
  465. main.c:
  466.     Added MAXMEM= and SLICES= variables for mint.cnf.
  467. bios.c:
  468.     Fixed Setexc so that if the new vector is in a global
  469.     region, the region is re-marked to be super.
  470. dosmem.c:
  471.     Fixed a race condition with memory protection and
  472.     Pexec(100,...) (if the new process exited early,
  473.     the old process might still try to access it).
  474. realloc.c:
  475.     New file, for doing the Srealloc system call (for
  476.     Falcon TOS).
  477. *.*:
  478.     Merged in Allan's memory protection and debugging
  479.     code. New files: memprot.c, nalloc2.c, welcome.c.
  480.  
  481. version 0.96
  482.  
  483. PATCHLEVEL 14::
  484.  
  485. tosfs.c:
  486.     Aaargh! Just after cutting this patch I discovered
  487.     that I had the test backwards.
  488.  
  489. PATCHLEVEL 13::
  490.  
  491. tosfs.c:
  492.     Changed so that Fsfirst()/Fsnext() always return
  493.     upper case, regardless of domain. (MiNT aware
  494.     programs should use the new directory functions.)
  495. dosdir.c: ++akiernan
  496.     Got rid of the special hack for drive x:, since
  497.     drive x: no longer exists.
  498. asm.y: ++akiernan
  499.     Cleaned up a bit.
  500. *.c: ++julian
  501.     Some minor patches for PureC.
  502. dosdir.c: ++julian
  503.     New system call, Dgetcwd(), with a 'size' parameter;
  504.     this doesn't do anything different from Dgetpath
  505.     now, but it's there for future expansion.
  506.  
  507. PATCHLEVEL 12::
  508.  
  509. version.h:
  510.     Update the patchlevel correctly.
  511. pipefs.c,dosfile.c:
  512.     Keep the Unix style semantics for pipes created with
  513.     Fpipe, but not for other fifo's (which by default will
  514.     continue to read the number of bytes requested).
  515.  
  516. PATCHLEVEL 11::
  517.  
  518. tty.c:    ++schwab
  519.     Support word-erase and quote-next-char.
  520. fasttext.c: ++schwab
  521.     support fgcol/bgcol
  522.     (screen_ioctl): tty_ioctl is now called by parent by default if
  523.     EINVFN
  524. signal.c (check_sigs): ++schwab
  525.     Use an int to index signals, not a long
  526. biosfs.c (bios_getxattr): ++schwab
  527.     u:\dev\stdin, etc., get the attributes of
  528.     the associated files
  529. dos.c (p_setuid, p_setgid): ++schwab
  530.     Allow setting to the current real [gu]id
  531. bios.c (checkkeys): ++schwab@ls5.informatik.uni-dortmund.de
  532.     Keys read by do_func_key should not be
  533.     interpreted (esp. UNDO -> SIGQUIT). also recheck shift status
  534.     since do_func_key may take some time
  535. xbios.c: ++entropy@gnu.ai.mit.edu
  536.     Added code to support old (tos < 1.4) Rsconf()
  537.     semantics.
  538. mem.c:
  539.     Changed so that attempts to execute a shared text program
  540.     which has data/bss references in the text segment will
  541.     get an ENOEXEC error instead of ENSMEM.
  542. *.c: ++julian@math.uni-muenster.de
  543.     Applied Julian's purec patches.
  544.  
  545. PATCHLEVEL 10::
  546.  
  547. pipefs.c:
  548.     Changed so that read() on a pipe will return as
  549.     soon as some data is available; this is how
  550.     all Unixes work.
  551. *.c:
  552.     Applied Julian's patches to allow compilation with
  553.     PureC.
  554. main.c:
  555.     New variable, MAXMEM=, for setting maximum memory
  556.     size (in K).
  557. main.c:
  558.     Removed PSEUDODRIVES= command, since "alias" has
  559.     replaced it.
  560. util.c:
  561.     Changed atoi to atol; it's more generally useful.
  562. asmtrans:
  563.     Applied Howard's patches; in particular, made %ifdef
  564.     apply to other commands (like %define) as well as to
  565.     code generation.
  566.     
  567. PATCHLEVEL 9::
  568.  
  569. asmtrans:
  570.     Cleaned up a bit more for cross-compilation.
  571. intr.spp:
  572.     in_kernel can be set while the process is in user mode
  573.     (if the critical error handler calls GEM)
  574. syscall.spp:
  575.     Get rid of some more magic numbers.
  576. bios.c:
  577.     While fixing the mtt bug, a new bug was introduced. So,
  578.     let's try again :-).
  579.  
  580. PATCHLEVEL 8::
  581.  
  582. bios.c:
  583.     Fixed a particularly silly bug in bios.c: in do_bconin(),
  584.     r was being returned without being initialized. Why didn't
  585.     gcc catch this?
  586. *.c:
  587.     Applied Alex's patches for Lattice, and Julian's patches for
  588.     Pure C.
  589. signal.c:
  590.     Kill programs with p_term() instead of terminate() (except for
  591.     signal SIGKILL) so as to allow them a chance to clean up via
  592.     the term_vec vector.
  593. shmfs.c:
  594.     Allow Fattrib() call to change the read-only
  595.     bit. Made Fxattr() return the correct mode
  596.     for shared memory files.
  597. main.c, fasttext.c:
  598.     Allowed HARDSCROLL=AUTO to set the number of
  599.     lines of scrolling to the current screen size.
  600. syscall.spp, inline.h:
  601.     New functions, callout2() and callout1(), with
  602.     less overhead; used by bios.c to call the
  603.     Bconxxx functions.
  604. bios.c:
  605.     Changed calls to Bconxxx functions into
  606.     jumps through the defined vector table in
  607.     low memory, when this is possible (TOS 1.0
  608.     doesn't have the table).
  609. asmtrans, *.spp:
  610.     Added %ifdef, %else, and %endif commands (for
  611.     future expansion). Removed the requirement that
  612.     macros to be expanded be delimited by % signs,
  613.     and cleaned up the definitions. Changed
  614.     "SECTION FOO" to "FOO". Added -purec compilation
  615.     option.
  616. filesys.c:
  617.     Fixed a bug in changedrv (there was no
  618.     check to see if "d" was a BIOS drive before
  619.     aliasdrv[d] was tested).
  620.  
  621. PATCHLEVEL 7::
  622.  
  623. biosfs.c,fasttext.c:
  624.     Fixed incorrect code that assumed TCURSON
  625.     was 0.
  626. makefile:
  627.     Fixed Makefile to work with older versions
  628.     of gmake, as well as generic make programs.
  629.  
  630. PATCHLEVEL 6::
  631.  
  632. *.s:
  633.     Radical overhaul of how assembly language is
  634.     handled. We now provide 2 utility programs,
  635.     "genmagic" (for producing symbolic names for
  636.     various offsets into structures) and "asmtrans"
  637.     (for processing .spp files, replacing macros
  638.     defined by "genmagic" and optionally translating
  639.     Motorola to MIT syntax). Now we only have to
  640.     maintain the .spp files; the Lattice and gcc
  641.     versions of the .s files are generated automatically,
  642.     and as a side benefit we can get rid of magic
  643.     numbers in the .s files and be sure that if we
  644.     change proc.h, the assembly language will be
  645.     updated properly.
  646. main.c,filesys.c,file.h:
  647.     Added a new command to mint.cnf, "alias", to
  648.     enable aliases for pseudo (and other) drives
  649.     to be created. Also, deleted drives q:, v:, and
  650.     x:. Programs should no longer be using these;
  651.     if they are, users can put things like
  652.     "alias q: u:\pipe" into mint.cnf.
  653. file.h:
  654.     Fixed the definitions for TCURSON and TCURSOFF.
  655. console.c:
  656.     Moved the handle checks in file_* functions into
  657.     separate functions, since for example we *know*
  658.     that handle 0 falls within the legal range; this
  659.     should remove a bit of overhead on BIOS and
  660.     single character GEMDOS I/O.
  661. main.c:
  662.     Got rid of the zeroexit() code; since we now
  663.     allow the whole boot process to be aborted by
  664.     right shift.
  665. pipefs.c:
  666.     Allow Cursconf() to work on TOSWIN pipes.
  667. mem.c:
  668.     Check the date and time of shared text regions
  669.     before re-using them.
  670. bios.c,syscall.s:
  671.     Changed the trap #13 entry point to allow quick
  672.     evaluation of BIOS functions that don't need
  673.     the full context save/restore done.
  674. everywhere:
  675.     Macro-ize TRACE and DEBUG so that it's possible
  676.     to produce a smaller version of MiNT without
  677.     them.
  678. biosfs.c:
  679.     Don't check for keyboard presses after every
  680.     BIOS write, it's too time consuming.
  681.  
  682. PATCHLEVEL 5::
  683.  
  684. mem.c:
  685.     Another bug: we shouldn't do the dLibs Pexec
  686.     hack on the first process we start up, because
  687.     it means messing with the MiNT basepage (which
  688.     is not ours to mess with, it's TOS's).
  689. main.c:
  690.     Fixed bug in enter_kernel (rootproc->base is no
  691.     longer necessarily MiNT's basepage).
  692. various places:
  693.     Tried to remove gcc warnings about constant
  694.     expression overflow.
  695. syscall.s:
  696.     Applied Alex's patch to allow trace mode to work
  697.     with non-MiNT debuggers.
  698. various places:
  699.     Applied Alex's patches to get rid of Lattice warnings
  700.     about unneeded assignments.
  701. mem.c:
  702.     Added extra traces to exec_region() in an effort to
  703.     track down the mysterious crash problems that others
  704.     have had.
  705.  
  706. PATCHLEVEL 4::
  707.  
  708. dosmem.c:
  709.     Made do_vfork not bother to save shared text regions.
  710. bios.c:
  711.     Made Rwabs respect Dlock.
  712. tosfs.c:
  713.     Made the TOS media change routines lazier (actual
  714.     disk access is deferred until the disk is next
  715.     needed).
  716. main.c:
  717.     Applied Alex's patches for setenv.
  718. everywhere:
  719.     Applied Julian's patches for Pure/Turbo C. The
  720.     resulting kernel doesn't actually work yet, but
  721.     at least we don't get so many error messages when
  722.     compiling. (Who needs lint when you have three
  723.     fussy ANSI compilers?)
  724. mint.h:
  725.     Oops; we should have had #include "inline.h" here.
  726. inline.h:
  727.     Applied jrb's GCC patches, and Alex's Lattice patches.
  728.  
  729. PATCHLEVEL 3::
  730.  
  731. bios.c:
  732.     Some optimizations in bflush(). I tried something like
  733.     this before, but messed up the terminal output modes.
  734.     Let's hope I got it right this time. Also:
  735.     removed some dependencies on sizeof(int).
  736. makefile:
  737.     Tried -O2 instead of -O. It seems to work, so let's
  738.     leave it on for now.
  739. inline.h:
  740.     New file to keep short, inlined versions of frequently
  741.     called functions.
  742. intr.s:
  743.     Check the floppy disk locking flag before doing a
  744.     pre-emption. Not really necessary now, but it doesn't
  745.     hurt to be careful.
  746. dosfile.c,*fs.c:
  747.     Applied Alex's F_SETLKW patches. If Alex isn't careful,
  748.     he's going to make MiNT Posix compliant on us :-).
  749. dosmem.c:
  750.     Applied Alex's patches to add a Pwaitpid system call.
  751. main.c:
  752.     If running from the AUTO folder, adjust the basepage
  753.     chains so that MiNT is invisible to programs that
  754.     (incorrectly!) make assumptions about basepages.
  755. proc.c:
  756.     Some optimizations in do_wakeup.
  757. filesys.c:
  758.     Don't call (*fs->dskchng)() twice when a disk
  759.     change is detected.
  760. main.c:
  761.     Make sure the _resvalid system variable has the
  762.     correct magic number in it for indicating that
  763.     we want to catch the reset.
  764.  
  765. PATCHLEVEL 2::
  766.  
  767. dosdir.c:
  768.     Really forbid deleting other process' current
  769.     directories (the actual "return EACCDN" was missing!)
  770. proc.c:
  771.     Inlined the check_time() function, and re-arranged
  772.     do_wakeup_things a bit to be more efficient.
  773. syscall.s:
  774.     Streamlined a bit; things are now kept in registers
  775.     where possible.
  776. filesys.c:
  777.     When loading file systems at startup time, don't
  778.     check the \MINT directory if that's the current one.
  779. filesys.c:
  780.     After a media change, instead of throwing away all
  781.     handles that pointed to the changed drive, make
  782.     them point to /dev/null instead, so that they
  783.     won't be re-used until the user explicitly closes
  784.     them.
  785. dosdir.c:
  786.     Allow Dlock() to succeed even if there is an
  787.     unfinished Fsfirst/Fsnext sequence on the drive.
  788. mem.c:
  789.     Allow relocations outside of the program load area;
  790.     apparently, some programs actually need these.
  791. mem.c:
  792.     Insert some sanity checks on memory addresses.
  793. signal.c:
  794.     Restart check_sigs if the process stopped because of
  795.     a signal, since the parent may reset the set of
  796.     pending signals.
  797. cpu.s:
  798.     New file from Alex, to control caching &c.
  799. various places:
  800.     More debugging patches from Alex, to make attaching
  801.     to existing processes work correctly.
  802.  
  803. PATCHLEVEL 1::
  804.  
  805. various places:
  806.     Cleaned up the debugging stuff a bit. For example, if a
  807.     process does PTRACESFLAGS on itself, it's the same
  808.     as if the parent did; also, if the process does a
  809.     Pexec with overlay (i.e. Unix exec()) then it stops
  810.     before its first instruction. This makes emulating
  811.     the Unix ptrace() system call much easier.
  812.  
  813. PATCHLEVEL 0::
  814.  
  815. biosfs.c:
  816.     Changed Fcntl TIOCISPEED/TIOCOSPEED to return the
  817.     next lowest legal baud rate if an illegal one is
  818.     specified.
  819. filesys.c:
  820.     Fix a bug that would cause an infinite loop if a
  821.     bad .XFS format is encountered.
  822. mem.c,mem.h,dosmem.c:
  823.     Implemented shared text; if the appropriate bit
  824.     (for now, 0x800) in the program header is set, then
  825.     the loader will set up a shared text region for
  826.     the program, and subsequent executions of it will
  827.     run out of the same text segment. Note that this
  828.     does require appropriate compiler support!
  829. filesys.c:
  830.     Fixed bug in the way directory searches are closed
  831.     after a media change.
  832. biosfs.c,intr.s:
  833.     Applied Julian's third mouse button patch for
  834.     /dev/mouse.
  835. *.s:
  836.     Applied Alex's debugging patches. Also: wrote a
  837.     Motorola->MIT syntax converter, so that we only
  838.     have to maintain the stuff in the "asm" directory.
  839. signal.c,proc.h,procfs.c,etc.:
  840.     Applied Alex's debugging patches, with a few
  841.     slight modifications.
  842.  
  843. version 0.95
  844.  
  845. PATCHLEVEL14::
  846.  
  847.  
  848. filesys.c:
  849.     Check for the existence of the \MINT directory before
  850.     trying to load .XFS files from there.
  851.  
  852. --- patchlevel 13 released to the public ---
  853.  
  854. PATCHLEVEL13::
  855.  
  856. proto.h,filesys.c:
  857.     Added Alex's patches for Lattice.
  858.  
  859. PATCHLEVEL12::
  860.  
  861. dosdir.c:
  862.     Fsnext() on symbolic links was broken, because
  863.     relpath2cookie no longer checks drive letters
  864.     unless "depth" is > 0. Fixed this. (why did
  865.     we change relpath2cookie that way?? this is
  866.     changed back in 0.99pl2)
  867. main.c,filesys.c:
  868.     Added support for putting the mint.cnf file
  869.     and any *.XFS files into the directory \mint.
  870. dos.c:
  871.     Added Pgeteuid() and Pgetegid() system calls.
  872. main.c:
  873.     Fixed the "set current directory" code to
  874.     work properly.
  875. main.c:
  876.     Added a sanity check; if GEM is already running,
  877.     don't try to run it again.
  878. procfs.c:
  879.     Added FIONWRITE and FIONREAD ioctl calls.
  880. proc.c,bios.c:
  881.     Fixed the type of the critical error handler.
  882. dosfile.c,file.h,proc.c:
  883.     Added Alex's patches for O_APPEND and O_NOINHERIT.
  884. shmfs.c:
  885.     Fixed lseek() on shared memory segments, and added
  886.     FIONWRITE and FIONREAD ioctl calls.
  887. fasttext.c:
  888.     Tried once again to tame the wild cursor.
  889. dosmem.c,proc.c:
  890.     Modified process startup code so that PROC structures are no
  891.     longer kept forever by the kernel (which should help alleviate
  892.     memory fragmentation problems a bit).
  893.  
  894. PATCHLEVEL11::
  895.  
  896. dosmem.c:
  897.     Applied Alex Kiernan's SIGTRAP bug fix (and kicked myself for
  898.     forgetting C's precedence rules; thanks, Alex!).
  899. filesys.c:
  900.     Fixed relpath2cookie so that names like "C:\Z:" aren't
  901.     interpreted as referring to drive Z:.
  902. fasttext.c:
  903.     Restored the "turn on cursor when opening()" code, because
  904.     without it the fasttext driver and BIOS aren't in sync.
  905. main.c:
  906.     Moved the check for the presence of an already existing MiNT
  907.     cookie to earlier in the initialization process, so that
  908.     the error message can be printed properly.
  909. shmfs.c:
  910.     Fixed Dpathconf() on U:\SHM (filenames are truncated automatically
  911.     on that file system) and corrected the comment there.
  912. syscall.s:
  913.     New function, call_aes, used to check for the presence of GEM
  914.     (so we can tell whether or not we're running from the AUTO folder).
  915. main.c:
  916.     Run any programs which come after mint.prg in the AUTO
  917.     folder.
  918. version.h:
  919.     Changed so that the patchlevel is always printed on boot-up.
  920.  
  921. PATCHLEVEL10::
  922.  
  923. unifs.c:
  924.     Add U:\SHM as an interface for shared memory.
  925. shmfs.c:
  926.     New file system for doing shared memory.
  927. xbios.c:
  928.     Fixed Bconmap() to always return an error if the underlying
  929.     TOS doesn't support Bconmap.
  930. main.c:
  931.     Fixed a bug in the argument parsing code for the "exec"
  932.     command in mint.cnf.
  933. dosdir.c:
  934.     Changed Dlock() to return ELOCKED if an attempt is made to
  935.     lock a drive that's already locked, and ENSLOCK if an attempt
  936.     is made to remove a non-existent lock.
  937. version.h:
  938.     I forgot again to update this. Aargh!
  939.  
  940. PATCHLEVEL9::
  941.  
  942. mem.c,mem.h:
  943.     Align everything on 16 byte boundaries.
  944. mem.c,dosmem.c:
  945.     Actually fix the "memory being allocated twice" bug.
  946.     The problem was that setting m->links to 0 before calling
  947.     attach_region was a no-no.
  948.  
  949. PATCHLEVEL8::
  950.  
  951. mem.c:
  952.     Attempt to fix the strange "memory being allocated
  953.     twice" bug.
  954. tosfs.c:
  955.     Truncating names at 14 characters came *before* the
  956.     8.3 kludge, which meant that long names were being
  957.     interpreted incorrectly (e.g. gcc-cc1plus.ttp was
  958.     becoming "gcc-cc1p.tt"). Temporary kludge: only
  959.     truncate at 32 characters. Long term solution:
  960.     re-write this code to do the 8.3 truncation at the
  961.     same time as the truncation.
  962. main.c, proc.h:
  963.     Provide a more explicit type for criticerr.
  964. proc.c:
  965.     Don't make _logbase per-process if hardware scrolling
  966.     is active, since this makes for all kinds of weirdness!
  967. mem.c:
  968.     Allow NULL commandline to be the same as an empty
  969.     string. (It was acting this way before, due to the MiNT
  970.     library strncpy; now that we use our own strncpy some
  971.     programs were passing funny arguments.)
  972. dosmem.c:
  973.     Provide a more detailed trace of Pexec activity.
  974. mem.c:
  975.     Added a sanity check in get_region().
  976. proc.c:
  977.     Set the time/date stamp of process 0 to the
  978.     date & time when the system was booted.
  979. fasttext.c:
  980.     Commented out the code that turns the cursor
  981.     on when u:\dev\fasttext is opened.
  982. tty.c:
  983.     Unsigned characters are always >= 0, so we
  984.     don't need to check this.
  985.  
  986. PATCHLEVEL7::
  987.  
  988. makefile.lcc,mintlc.prj:
  989.     Added Alex's patches.
  990. assert.h:
  991.     Added Alex's patch to cast the result to void.
  992. filesys.c:
  993.     Make sure the file system media change routine
  994.     is called every time a disk change is forced;
  995.     this corrects the Dlock() bug (it wasn't forcing
  996.     media change as it should have).
  997. version.h:
  998.     Oops! I forgot to increment this for pl6, so
  999.     it jumps by 2 this time.
  1000.  
  1001. PATCHLEVEL6::
  1002.  
  1003. biosfs.c,pipefs.c,tty.c:
  1004.     New Fcntl calls for controlling terminal baud
  1005.     rates and flags such as parity and stop bits.
  1006.     These have been integrated with the old TIOC*
  1007.     calls where applicable.
  1008. dosfile.c:
  1009.     Changed Fcntl to make a call to tty_ioctl be the
  1010.     default if the device is a terminal and the device
  1011.     ioctl routine returns EINVFN.
  1012. procfs.c, proc.c:
  1013.     The date/time stamp of a process now shows when the
  1014.     process was started, rather than being the number
  1015.     of seconds of CPU time used.
  1016. tosfs.c:
  1017.     Degrade an ALERT to a TRACE; there is a circumstance
  1018.     in which a root directory can apparently be changed,
  1019.     and that's when a program tries to open an empty
  1020.     file name. We don't need to warn the user that
  1021.     something is wrong in this case; we can just fail
  1022.     silently.
  1023. proc.c:
  1024.     Save the logical screen base for each process.
  1025. main.c,bios.c,proc.h:
  1026.     Made the critical error handler per-process.
  1027. bios.c,syscall.s:
  1028.     A cleaner way of saving registers when calling
  1029.     functions... this wasn't really necessary, but I
  1030.     did it to make tracking a bug down easier.
  1031. tty.c:
  1032.     New terminal flag, T_NOFLUSH, to suppress flushing of
  1033.     input when SIGINT or SIGQUIT is received.
  1034. *fs.c, file.h:
  1035.     Added a new Dpathconf() option that tells whether or
  1036.     not a file system is case sensitive.
  1037. dos.c:
  1038.     Forbid Prenice() on processes that you don't own.
  1039. dosmem.c:
  1040.     Correct a typo that was causing terminal process groups
  1041.     to be incorrectly set.
  1042.  
  1043. PATCHLEVEL5::
  1044.  
  1045. makefile:
  1046.     The -DOWN_LIB declaration should have been on (actually,
  1047.     it was, in my copy... sorry for the mix-up).
  1048. fasttext.c:
  1049.     Applied Alex's patch for the disappearing cursor bug.
  1050. everywhere:
  1051.     Applied Alex's patches to add "const" declarations where
  1052.     appropriate, and to get rid of size_t (since if OWN_LIB
  1053.     is defined we use "int" instead).
  1054. dosmem.c:
  1055.     Fixed M_KEEP to attach memory to rootproc *only* at
  1056.     process termination.
  1057.  
  1058.  
  1059. PATCHLEVEL4::
  1060.  
  1061. proto.h:
  1062.     Added prototype for do_func_key().
  1063. everywhere:
  1064.     Applied apratt's debugging/trace patches.
  1065.  
  1066. PATCHLEVEL3::
  1067.  
  1068. xbios.c, biosfs.c:
  1069.     Change Bconmap to actually do the equivalent of an
  1070.     Fforce(-2, foo) call; this way, we don't need the
  1071.     ugly DFLTMODM kludge. (On the other hand, we introduce
  1072.     some new ugly kludges :-)).
  1073. main.c,proc.c:
  1074.     Wait until everything is initialized before opening
  1075.     devices; this avoids bogus critical error messages from
  1076.     AHDI.
  1077. util.c, mint.h, ctype.h:
  1078.     Add all sorts of utility routines (for string processing,
  1079.     character type recognition, and the like). This is
  1080.     designed to make sure that MiNT works the same regardless
  1081.     of what library is used to compile it. We're not quite
  1082.     totally independent of library yet (the startup code and
  1083.     <osbind.h> aren't replaced) but we're pretty close.
  1084. main.c, proc.c:
  1085.     Initialize the current directory for the root
  1086.     process *after* file systems have been loaded, since
  1087.     otherwise the info is nuked when a new fs is loaded in.
  1088. bios.c:
  1089.     Allow output to BIOS device 5 to be redirected along
  1090.     with BIOS device 2; we do this by using the MW
  1091.     ESC-Q control sequence to quote characters. A bit of
  1092.     a hack, but then, not many people use device 5.
  1093. quickmov.s:
  1094.     Fixed two bugs in quickmove: (1) it didn't work for
  1095.     regions bigger than 0x00fffe00 bytes in length,
  1096.     and (2) it assumed the length was a multiple of 4
  1097.     bytes.
  1098. fasttext.c:
  1099.     Re-arrange things a bit to get rid of a gcc 2.1 warning.
  1100. dosmem.c:
  1101.     Change flag 0x4000 to mean "don't free the memory
  1102.     automatically on process termination"; explicit
  1103.     Mfree requests are still allowed, and after
  1104.     termination *any* process may Mfree the memory.
  1105.  
  1106. PATCHLEVEL2::
  1107.  
  1108. makefile:
  1109.     Remove -fcombine-regs from CFLAGS, since gcc 2.1
  1110.     doesn't understand it.
  1111. bios.c:
  1112.     Ignore value returned by Bconout for the screen
  1113.     (many text accelerators get this wrong :-( ).
  1114. dossig.c, signal.h:
  1115.     New system call, Psigaction(), by AGK. 
  1116. xbios.c:
  1117.     Added support for Bconmap.
  1118. bios.c, biosfs.c:
  1119.     Rationalized the way biosfs and bios interact;
  1120.     no more funny device numbers are needed. Also:
  1121.     added support for Bconmap, and a new default
  1122.     modem device.
  1123. pipefs.c:
  1124.     Applied Michael Hohmuth's patch for pipe_close (thanks,
  1125.     Michael!)
  1126. filesys.c:
  1127.     Don't try to initialize all the drives at boot time; path2cookie
  1128.     is quite capable of initializing, and it saves having
  1129.     to access drive B: (for example) while booting is going
  1130.     on.
  1131. main.c:
  1132.     Allow the user to avoid booting MiNT if the right shift key
  1133.     is held down.
  1134. main.c:
  1135.     Added safety checking, as suggested by AKP.
  1136. dosmem.c:
  1137.     In Mxalloc, if (mode & 0x4000) is nonzero then allocate non-freeable
  1138.     memory (we do this by attaching the memory to the root process).
  1139. fasttext.c:
  1140.     Tabs should be non-destructive on the ST!
  1141. proc.h:
  1142.     Re-arranged some things. Note that "slices" was never supposed
  1143.     to be visible to users! Also, added a "bconmap" variable to
  1144.     give the current Bconmap mapping for the process.
  1145. dosdir.c:
  1146.     Fail Ddelete of current directories only on the current
  1147.     drive; for other drives, reset the current directory
  1148.     to the root directory. NOTE: Ddelete of a current directory
  1149.     is forbidden only if the directory is someone else's
  1150.     current directory; if it's only your current dir., you
  1151.     can delete it (and get automatically bumped back to
  1152.     root).
  1153.  
  1154. PATCHLEVEL1::
  1155.  
  1156. dosmem.c:
  1157.     Fixed a bug that caused processes with no '.' in their names
  1158.     to have the wrong process name.
  1159. dosmem.c:
  1160.     In Pexec, make sure we yield to the new process so that
  1161.     it gets at least one timeslice to do an Mshrink().
  1162. proc.c:
  1163.     In preempt(), don't punish processes that have buffered
  1164.     BIOS output and are preempted; the process of flushing the
  1165.     buffer may very well put them to sleep, and in any event
  1166.     processes doing I/O should not be considered "hogs".
  1167. tosfs.c:
  1168.     Don't look for volume labels in opendir/readdir/lookup etc.
  1169. main.c:
  1170.     AGK: added DEBUG_LEVEL and DEBUG_DEVNO options to mint.cnf.
  1171. dossig.c:
  1172.     New system call (Psigpause()) courtesy of Alex Kiernan.
  1173. dosmem.c:
  1174.     In Pexec(200,...), don't reset base->p_parent, since the
  1175.     "parent" in an overlay exec is oneself.
  1176. tty.c:
  1177.     Fixed so that RAW mode reads will return all of an
  1178.     extended escape sequence at once, rather than waiting
  1179.     for the next read.
  1180. dosmem.c:
  1181.     When terminating a process, make sure that it's "number of
  1182.     memory regions" is set to 0; otherwise, calls to memused()
  1183.     on the process (e.g. by procfs) can crash the system.
  1184. dosdir.c:
  1185.     When removing directories, make sure that the directory
  1186.     isn't in use as someone's current directory (so that
  1187.     they don't get left in limbo).
  1188. fasttext.c:
  1189.     Screen memory must come from ST RAM -- otherwise hardware
  1190.     scrolling crashes and burns. Fixed thanks to AGK.
  1191. xbios.c:
  1192.     Moved the prototype for midiws to proto.h, and corrected the
  1193.     type of its argument (it should have been "int", not "short").
  1194.  
  1195. PATCHLEVEL0::
  1196.  
  1197. bios.c:
  1198.     Terminal modes weren't being set correctly in Bconout, and also
  1199.     weren't being set in bflush (which should have employed RAW
  1200.     mode output, but didn't).
  1201. everywhere:
  1202.     Merged in Alex Kiernan's latest Lattice C patches.
  1203.  
  1204.  
  1205. version 0.94
  1206.  
  1207. PATCHLEVEL4::
  1208.  
  1209. filesys.c:
  1210.     Use U:\DEV\CON for CON:, instead of V:\CON, since we're
  1211.     going to make drive V: go away soon.
  1212. unifs.c:
  1213.     When looking up a drive, make sure that it has a valid file
  1214.     system attached to it -- otherwise, newly installed ramdisks
  1215.     can cause system crashes :-(.
  1216. fasttext.c:
  1217.     Patches to make the fast text device work correctly on a TT,
  1218.     courtesy of Erling Henanger.
  1219. main.c:
  1220.     Install 16 extra cookies, instead of 8, just to be friendly.
  1221.  
  1222. PATCHLEVEL3::
  1223.  
  1224. main.c:
  1225.     Allow PSEUDODRIVES=MAP to put the extra drives in
  1226.     _drvbits without installing new drivers for them.
  1227. unifs.c:
  1228.     Don't rely on drvmap() to figure out what drives exist;
  1229.     it isn't accurate if PSEUDODRIVES=NO.
  1230.  
  1231. PATCHLEVEL2::
  1232.  
  1233. main.c:
  1234.     Added an option for turning off the BIOS routines for the
  1235.     pseudo-drives.
  1236. filesys.c:
  1237.     Moved the vector set/restore code to main.c (where all the
  1238.     other vector stuff is).
  1239. tosfs.c:
  1240.     If the _FLK cookie was already set when MiNT started, we
  1241.     pass file sharing and locking requests through to GEMDOS.
  1242. main.c:
  1243.     Turn the cursor off when leaving, if we were started from
  1244.     the desktop.
  1245. tosfs.c:
  1246.     Fixed a bug in which tos_chmode was returning an incorrect
  1247.     value.
  1248. debug.c:
  1249.     Added code for octal output to sprintf().
  1250. dosdir.c:
  1251.     Make Fsfirst() with the FA_LABEL bit set work on non-TOS
  1252.     file systems (via the file system readlabel function).
  1253.     (This used to work only when the search was restricted to
  1254.     labels only.)
  1255. various places:
  1256.     Get rid of gcc 2.0 warnings.
  1257.  
  1258. PATCHLEVEL1::
  1259.  
  1260. file.h:
  1261.     Because Fmidipipe and the disk change code can close
  1262.     files other than the files of the current process,
  1263.     the device driver "close" function needs another
  1264.     parameter, namely the process id being closed; this
  1265.     allows device drivers to remove locks properly.
  1266. tosfs.c:
  1267.     Volume labels shouldn't be found by Dreaddir().
  1268. tosfs.c:
  1269.     Added file locking.
  1270. filesys.c, main.c, file.h:
  1271.     New utility routine (denylock) to make implementing file
  1272.     locking easier for file systems.
  1273.  
  1274. PATCHLEVEL0::
  1275.  
  1276. tosfs.c:
  1277.     Canonicalize file names (i.e. convert to 8.3 format).
  1278.     Also, keep track of the value returned from the last
  1279.     readdir() call, so that a subsequent Fxattr() will take
  1280.     place quickly.
  1281. proc.c:
  1282.     In sleep(), make sure interrupts are disabled while queue
  1283.     manipulations are occuring.
  1284. bios.c:
  1285.     Correct a stuttering problem for ^C and similar interrupts.
  1286. dosmem.c:
  1287.     8 character process names weren't terminated properly.
  1288. tty.c:
  1289.     Aaargh! Shift+cursor keys were being interpreted even when
  1290.     they shouldn't have been.
  1291.  
  1292. version 0.93
  1293.  
  1294. PATCHLEVEL6::
  1295.  
  1296. filesys.c:
  1297.     Check for newly installed drives when parsing an
  1298.     absolute path without an explicit drive letter, as
  1299.     well as when looking at ones with drive letters.
  1300.  
  1301. PATCHLEVEL5::
  1302.  
  1303. biosfs.c, fasttext.c:
  1304.     Allow TIOCGWINSZ calls on the console (we use the line A
  1305.     variables to get the number or rows and columns).
  1306. filesys.c:
  1307.     Fix a typo in the file system initialization checking.
  1308. pipefs.c:
  1309.     Make "VIRGIN_PIPE" more obviously a magic value, and
  1310.     document it.
  1311. pipefs.c:
  1312.     Make u:\pipe have a sensible date/time; also, make
  1313.     Dfree on u:\pipe return some useful statistics about
  1314.     the number of pipes in the system.
  1315. procfs.c:
  1316.     u:\proc has a sensible time and date now, namely the
  1317.     time/date of the last process creation or destruction.
  1318. dosfile.c:
  1319.     Fcreate() of a volume label now returns a handle to
  1320.     u:\dev\null.
  1321. dosmem.c:
  1322.     Make sure the BIOSBUF buffer is flushed when terminating.
  1323. main.c:
  1324.     There's a bug in TOS 1.4: GEM seems to assume that all
  1325.     memory is zero initially, and if it isn't (e.g. if a large
  1326.     AUTO folder program like MiNT terminates and leaves behind
  1327.     dirty memory) then having too many (or the wrong kind of)
  1328.     desk accessories can lead to a crash. This was a real bear
  1329.     to track down, and the work-around is very ugly; before
  1330.     MiNT exits we copy a short machine language subroutine into
  1331.     the command line, and then execute it; the routine zeros
  1332.     all of the TPA and then does a Pterm0().
  1333. rendez.c:
  1334.     Change a "short" to "int" for the benefit of gcc 2.0.
  1335. bios.c:
  1336.     Stop process dumps from stuttering.
  1337. console.c:
  1338.     Added support for global file handles.
  1339.  
  1340. PATCHLEVEL4::
  1341.  
  1342. dosfile.c:
  1343.     In Fselect(), we have to re-validate file handles after
  1344.     a sleep() call, since signal handlers may close files.
  1345. proc.c:
  1346.     Pre-allocate more PROC structures (this should help
  1347.     reduce memory fragmentation).
  1348. tty.c, file.h:
  1349.     Allow cursor/function keys to send escape sequences.
  1350. dosdir.c:
  1351.     As suggested by S. Henson: Dsetpath through a symbolic link
  1352.     may also require changing the current drive as well.
  1353. proc.c,dos.c,timeout.c:
  1354.     New process scheduling algorithm, as suggested by A. Pratt.
  1355. dosdir.c:
  1356.     Make only the low bit of Dlock() significant, for future
  1357.     expansion.
  1358. dosfile.c:
  1359.     Allow Fcreate() to create a global file handle.
  1360.  
  1361. PATCHLEVEL3::
  1362.  
  1363. debug.c:
  1364.     Changed TRACE mode output so that not just any keys will
  1365.     start/stop output, but only Help and Undo.
  1366. dosdir.c, filesys.c:
  1367.     Add a Dlock() system call to lock/unlock drives.
  1368. filesys.c:
  1369.     Only initialize drives if the BIOS drive map says that
  1370.     they exist.
  1371. dosmem.c:
  1372.     In Pexec, make a copy of any name we're going to use
  1373.     before freeing memory for overlayed programs; the old
  1374.     way was decidedly incorrect!
  1375. dosfile.c:
  1376.     Allow for global file handles, so that shared libraries
  1377.     can use file handles that are the same for all processes.
  1378. dosmem.c:
  1379.     In Mxalloc, ignore bits that we don't understand, to
  1380.     allow for future expansion.
  1381. syscall.s:
  1382.     Fix a bug that could cause the wrong system call to be
  1383.     made if BIOS buffering is on (!).
  1384. bios.c:
  1385.     Streamline the BIOS buffering mechanism, and make it
  1386.     more conservative about multiple processes doing Bconout
  1387.     output.
  1388. procfs.c:
  1389.     Allow "foo.-1" to stand for the current process, and
  1390.     "foo.-2" to stand for our parent. Also, add new
  1391.     Fcntls for getting/setting memory flags.
  1392. bios.c:
  1393.     In Setexc(), don't actually change any vectors, let the BIOS
  1394.     do it -- some TSR's install trap handlers that look for
  1395.     certain Setexc functions...
  1396. signal.c:
  1397.     Allow nested Supexec() calls, or Supexec()'s from a terminate
  1398.     vector.
  1399. procfs.c:
  1400.     Change the definition of PPROCADDR and add a new Fcntl,
  1401.     PCTXTSIZE.
  1402. mem.c:
  1403.     In exec_region, set the stack based on the value of p_hitpa
  1404.     from the basepage, instead of the size of the memory
  1405.     region -- some programs rely on being able to set the initial
  1406.     stack pointer for a Pexec(4,...) this way.
  1407. main.c, context.s:
  1408.     Avoid using 68020 instructions if we're on a 68010.
  1409.  
  1410. PATCHLEVEL2::
  1411.  
  1412. dos.c,proc.c:
  1413.     More tweaking of the priority code.
  1414. main.c:
  1415.     Change the type of "tosbp" from char ** to BASEPAGE **,
  1416.     since that's what it really is.
  1417. main.c:
  1418.     Add a special case for the Spanish TOS 1.0 act_pd variable.
  1419. pipefs.c:
  1420.     When a writer is waiting to write a small amount of data
  1421.     atomically, remember to wake up readers so that they
  1422.     can clear the pipe!
  1423. debug.c:
  1424.     Add the %u flag to ksprintf() (Fselect uses it, maybe others
  1425.     do too...)
  1426. dosmem.c:
  1427.     In Pterm(), put the exit code onto the stack when calling
  1428.     etv_term. It won't be in the same place as it was for TOS,
  1429.     but c'est la vie. (People asked for this feature...)
  1430. xbios.c:
  1431.     Provide a way to pass arguments to Supexec(). Note that Atari
  1432.     never documented that this was possible, but some people were
  1433.     relying on it anyway :-(. (Don't use this feature, it's only
  1434.     there as a compatibility hack.)
  1435. main.c:
  1436.     In shutdown(), don't bother waiting a second for processes
  1437.     to finish if there are no other processes.
  1438. filesys.c:
  1439.     Make sure that path names are null terminated after strncpy.
  1440. mem.c:
  1441.     Fix the code to zero process registers so that it *only* zeros
  1442.     process registers.
  1443. dosmem.c:
  1444.     Eliminate some redundant code.
  1445. dosfile.c:
  1446.     Open u:\pipe\sys$pipe.xxx rather than q:\sys$pipe.xxx.
  1447. main.c:
  1448.     Change a "malloc" into "kmalloc", and restore the #include
  1449.     of <minimal.h> that was inadvertently deleted.
  1450. main.c:
  1451.     Allow parameters to be passed to the initial program specified
  1452.     by the INIT= string.
  1453.  
  1454. PATCHLEVEL1::
  1455.  
  1456. main.c:
  1457.     Fix a typo in shutdown() that was causing problems when
  1458.     MiNT was shut down while processes were active.
  1459. tosfs.c:
  1460.     Make sure that tfullpath() returns a string less than
  1461.     PATH_MAX characters long.
  1462. everywhere:
  1463.     Replace "sprintf" with "ksprintf".
  1464. debug.c:
  1465.     Add a "ksprintf" function that's like sprintf(), but
  1466.     (a) doesn't have so many features (making it smaller),
  1467.     and more importantly (b) won't try to write more than
  1468.     SPRINTF_MAX characters into a buffer.
  1469. filesys.c:
  1470.     In path2cookie, make sure we don't try to copy more than
  1471.     PATH_MAX characters into the fixed size buffers.
  1472. dosmem.c:
  1473.     The "sleep if no memory available during Malloc" code
  1474.     was causing more problems than it solved, so it was
  1475.     removed. To compensate, we increase the priority of
  1476.     newly Pexec'd processes to make sure that they get
  1477.     to run.
  1478. dosmem.c:
  1479.     Aaaargh! A very serious screw-up in terminate() was
  1480.     causing us to wake up processes sleeping in vfork()
  1481.     even when their children were still using the address
  1482.     space; needless to say, horrible (and mysterious)
  1483.     crashes could ensue. Fix: only force the parent awake
  1484.     if wait_q == WAIT_Q && wait_cond matches the terminating
  1485.     process, otherwise let post_sig() handle waking.
  1486.     While fixing this bug, re-arrange the terminate code
  1487.     to do the waking up at the very end, just in case some
  1488.     of the other code may cause a sleep() temporarily.
  1489. bios.c:
  1490.     Fix the scan code for the UNDO key.
  1491. fasttext.c:
  1492.     Use Setscreen() to set the hardware screen base, since setting
  1493.     the variable at 0x45e causes TOS to keep setting the screen base
  1494.     ad infinitum.
  1495.  
  1496. PATCHLEVEL0::
  1497.  
  1498. rendez.c:
  1499.     When waking a process up from a semaphore, check to see
  1500.     if it's on the WAIT_Q before trying to remove it from
  1501.     that queue (it might have been moved off the wait queue
  1502.     by a signal).
  1503. bios.c:
  1504.     Make sure that Bconout(2,c) always succeeds, to compensate
  1505.     for text accelerators and other programs that don't return
  1506.     sensible values from Bconout. Also, ignore the Bconout
  1507.     return value when flushing the text output buffer.
  1508.  
  1509. version 0.92
  1510.  
  1511. PATCHLEVEL4::
  1512.  
  1513. biosfs.c:
  1514.     Provide devices for the extra Mega STe serial ports.
  1515. biosfs.c:
  1516.     Make the kernel info structure available to device drivers
  1517.     loaded with Dcntl.
  1518. xbios.c:
  1519.     Provide a modified Midiws function so that this is also
  1520.     affected by Fmidipipe and Fforce.
  1521. biosfs.c:
  1522.     Split bios_device into two device drivers; one for
  1523.     terminal devices, and one for plain character devices
  1524.     (the printer and IKBD port fall into this category).
  1525.     Also: provide a new Dcntl call to install plain BIOS
  1526.     devices in U:\DEV.
  1527. tty.c:
  1528.     Check for terminal start/stop keys while reading.
  1529. bios.c:
  1530.     In checkkeys, loop through all keys received since our last
  1531.     interrupt, rather than just checking the last thing in the
  1532.     buffer (as A. Pratt suggested).
  1533. bios.c, tty.c:
  1534.     Made the "disable" character for special terminal functions
  1535.     (e.g. the EOF key) be 0 instead of -1; this matches System V,
  1536.     is more POSIX friendly, and also makes confusing function keys
  1537.     and ^@ less likely. (Thanks to Scott Willingham for this
  1538.     suggestion.)
  1539. file.h, elsewhere as needed:
  1540.     Renamed the O_BIOS flag O_TTY (since that's what it really
  1541.     represents) and renamed the is_bios macro is_terminal.
  1542. dosmem.c:
  1543.     Make Pexec mode 106 cause the child to be truly independent
  1544.     of the parent (i.e. it doesn't get the parent's address space,
  1545.     nor does the parent get the child's).
  1546. biosfs.c:
  1547.     Allow symbolic links from U:\DEV; this lets us do things like
  1548.     Fsymlink("U:\PIPE\SERVERFIFO", "U:\DEV\SERVERDEV").
  1549. main.c:
  1550.     When PRN=d:\foo is specified, create the file foo instead of
  1551.     just trying to open it; this makes no difference to devices,
  1552.     but makes redirecting printer output to a file much more
  1553.     convenient.
  1554. unifs.c:
  1555.     Fix a bug that was causing Dgetpath() to return incorrect
  1556.     information for U:\A.
  1557. timeout.c:
  1558.     Make sure "searchtime" is up-to-date; bconout uses this for
  1559.     the time out.
  1560. biosfs.c:
  1561.     Fix bios_write so that if bconout fails, so does the write.
  1562. bios.c:
  1563.     Fix bconout so that it doesn't hang forever if the device isn't
  1564.     going to be ready (e.g. the printer is off); instead, there's
  1565.     a 10 second timeout.
  1566. main.c:
  1567.     Send all processes SIGTERM when we're shutting down, so that
  1568.     they have a chance to clean up after themselves.
  1569. mint.h:
  1570.     The KBDVEC structure was missing the "clockvec" element (!).
  1571.  
  1572. PATCHLEVEL3::
  1573.  
  1574. biosfs.c:
  1575.     Revised to allow support for loading/removing device drivers
  1576.     dynamically, via a Dcntl() call.
  1577. dosmem.c,mem.c,dosfile.c,file.h:
  1578.     Added support for setuid/setgid. These bits are only checked
  1579.     in Pexec modes 0, 100, and 200, i.e. the "load and go" modes.
  1580. rendez.c:
  1581.     Added new semaphore code from Allan Pratt.
  1582. main.c:
  1583.     New command for mint.cnf: "exec foo.prg bar" runs the program
  1584.     "foo" with argument(s) "bar".
  1585. main.c:
  1586.     Use the XBRA protocol for all interrupt routines that we grab.
  1587. filesys.c:
  1588.     When terminating MiNT, close all open files to make sure data
  1589.     is flushed and devices are nicely shut down.
  1590. main.c:
  1591.     Add some more variables, such as CON and PRN for redirecting
  1592.     those handles, and HARDSCROLL for controlling the fast text
  1593.     output.
  1594. proc.c:
  1595.     Make sure the "links" field for the prn and aux handles is
  1596.     correct.
  1597. syscall.s, bios.c:
  1598.     Special case the BIOS Bconout code to try to speed it up
  1599.     a bit. We allow for buffering of Bconout output; the buffer
  1600.     is flushed on the next non-Bconout system call or context
  1601.     switch. This should usually work OK, but as a precaution
  1602.     we provide for a way to turn it off (BIOSBUF=NO in mint.cnf).
  1603. fasttext.c.fasttext.h:
  1604.     New files for a faster text output device; changes were
  1605.     made to biosfs.c to support this, too.
  1606. tty.c:
  1607.     Streamline writes to terminals by sending data to the
  1608.     tty device in chunks instead of 1 character at a time.
  1609. dosfile.c:
  1610.     In do_open, always return EFILNF, never EPTHNF.
  1611. dosmem.c:
  1612.     Use supexec() to execute the terminate vector code, to
  1613.     avoid duplication of signal 0 faking.
  1614. xbios.c:
  1615.     In Supexec() does leave the kernel, so we have to make
  1616.     appropriate adjustments. We do this by faking a signal
  1617.     (signal 0) and installing the user's function as a signal
  1618.     handler.
  1619. dosdir.c:
  1620.     Make Dfree(x) actually look at free space on the drive which
  1621.     corresponds to the current directory on <x>; this should make
  1622.     Dfree on drive U: much more useful.
  1623. proc.h:
  1624.     Make the "base" field of the PROC structure have type BASEPAGE *
  1625.     (since that's what it is!)
  1626. basepage.h, dosdir.c, dosmem.c:
  1627.     Support some undocumented fields in the basepage a little bit
  1628.     (i.e. they're read only). Programs that try to write to these
  1629.     fields break. Surprise, surprise.
  1630.  
  1631. PATCHLEVEL2::
  1632.  
  1633. dosmem.c, mem.c:
  1634.     The docs say that children started with Pexec(104,...) or
  1635.     Pexec(106,...) share the parent's memory. This was unfortunately
  1636.     not the case; if the parent exited and the child was running
  1637.     in the parent's address space (e.g. see tfork() in mntlib)
  1638.     the child died very soon thereafter (like when the next program
  1639.     comes along and clears the memory the child was running out of).
  1640.     This is now fixed.
  1641. dos.c, proc.c, timeout.c:
  1642.     More tuning of the process scheduler.
  1643. main.c:
  1644.     Added "setenv" function for mint.cnf.
  1645.  
  1646. PATCHLEVEL1::
  1647.  
  1648. filesys.c:
  1649.     In some circumstances, AHDI will keep telling us that a drive
  1650.     has changed, ad infinitum. To avoid this, we stop trying after
  1651.     8 media changes occur in a row.
  1652. util.c:
  1653.     Tuned the kmalloc() strategy to reduce memory fragmentation
  1654.     (every process will be allocating 264 bytes for its
  1655.     memory region maps right after creation, and this should
  1656.     come from kernel memory).
  1657. tty.c:
  1658.     Under TOS, 1 byte writes should always be in raw mode.
  1659. dos.c:
  1660.     In Syield(), we should call sleep() even if no other processes
  1661.     are waiting, just to make sure that signals, alarms, etc.
  1662.     are properly dealt with.
  1663. filesys.c, dosfile.c:
  1664.     The media change code was wedged (actually, the fault was in
  1665.     do_pclose, which sometimes neglected to check to see whether
  1666.     or not the file had a still-valid device driver).
  1667. dosmem.c:
  1668.     In the termination code, close "files" referring to a process
  1669.     *before* freeing all the process memory; that way, we don't
  1670.     have to worry in do_pclose() and other places about what
  1671.     kind of state the process is in.
  1672. mem.h:
  1673.     Round off memory regions only to a word boundary for better
  1674.     TOS compatibility.
  1675.  
  1676. PATCHLEVEL0::
  1677. dos.c,intr.s,syscall.s:
  1678.     Changed s_yield() to actually give up the processor if
  1679.     another process is waiting for it; this means that processes
  1680.     that call Syield() won't be penalized by the priority code.
  1681.     Also: added a new kernel function, preempt(), which does
  1682.     what the old s_yield() did (and hence penalizes CPU hogs).
  1683. makefile:
  1684.     Cleaned up a bit, per suggestions from A. Pratt and D. Gymer.
  1685.  
  1686.  
  1687. version 0.91
  1688.  
  1689. dosmem.c:
  1690.     Only the high 4 bits of the program load flags give memory
  1691.     requirements (we were using 8 bits).
  1692. dosdir.c:
  1693.     Add a hack so that ksh still works (it was using '/' in a
  1694.     path name). THIS HACK WILL GO AWAY SOMEDAY!
  1695. tty.c:
  1696.     CBREAK mode shouldn't do erase, kill, or EOF processing.
  1697. dosdir.c:
  1698.     Freadlink should check first to make sure the file really
  1699.     is a link!
  1700. file.h,tty.c:
  1701.     Change the name "struct winsiz" to "struct winsize" to match
  1702.     what Unix calls it (cosmetic change only).
  1703. unifs.c:
  1704.     Allow renaming of the drives, and allow rmdir() to work
  1705.     like unlink() for symbolic links (since we fake the return
  1706.     value from Fsfirst to look like a directory if the link
  1707.     points to a directory).
  1708. biosfs.c:
  1709.     lseek() on the null device should not return 0 always;
  1710.     otherwise, it will look like a terminal to many programs!
  1711. dosfile.c:
  1712.     If a MiNT domain process closes stdin or stdout, they
  1713.     really do want them closed (for compatibility with
  1714.     MiNT 0.8).
  1715. syscall.s:
  1716.     When returning from traps, don't pre-empt the current process
  1717.     if it's in supervisor mode.
  1718. mem.c:
  1719.     Fake some stuff in the basepage so that programs compiled
  1720.     with dLibs will work some of the time.
  1721. tosfs.c:
  1722.     Make the value returned from Dgetpath() lower case in the MiNT
  1723.     domain. Also, make tosfs a little less verbose when debugging
  1724.     or tracing is on.
  1725. dosmem.c:
  1726.     Try to allocate space for saved fork() memory in the alternate (TT)
  1727.     memory map first, as well as in core (ST) memory.
  1728. mem.h:
  1729.     Round allocation requests up to multiples of 8 bytes instead
  1730.     of 4; this automatically gives us a bit of slush for ill
  1731.     behaved programs, and also means that requests will always
  1732.     be for a multiple of sizeof(double) bytes.
  1733. util.c:
  1734.     Get rid of the extra slush around kmalloc'd regions (which
  1735.     was a lot bigger than originally intended anyway!)
  1736.  
  1737.  
  1738. version 0.9
  1739.  
  1740. PATCHLEVEL21:: released version
  1741.  
  1742. dosmem.c:
  1743.     Make Malloc and Mxalloc try again if there isn't enough memory;
  1744.     maybe the situation is temporary.
  1745. mem.c:
  1746.     Plug a memory leak in load_region(); also make load_region try again
  1747.     if there isn't enough memory to load the program (just in case the
  1748.     situation is temporary).
  1749. dosdir.c:
  1750.     Add a check to Fattrib to make sure that attributes of directories
  1751.     are never changed.
  1752.  
  1753. PATCHLEVEL20::
  1754.  
  1755. dosdir.c:
  1756.     Allow Frenames of processes and other special kinds of files even
  1757.     if they do have the FA_RDONLY bit set.
  1758. dosfile.c:
  1759.     Allow creation of files with the read-only attribute.
  1760. tosfs.c:
  1761.     Change the file deletion code so that an attempt to delete an
  1762.     open file no longer fails, but rather marks the file to be
  1763.     deleted when it is closed.
  1764. file.h:
  1765.     Add some extra space to the tty struct, for future expansion.
  1766. filesys.c,main.c:
  1767.     Make sure the fake BIOS disk routines are available before
  1768.     any of the pseudo-drives are used, by having them set up
  1769.     in init_filesys() instead of init_intr().
  1770. tosfs.c:
  1771.     Remove some debugging output that isn't needed anymore.
  1772.  
  1773. PATCHLEVEL19::
  1774. Beta release.
  1775.  
  1776. intr.s,main.c:
  1777.     provide some fake BIOS disk routines for the pseudo-drives,
  1778.     in hopes of avoiding "drive U: is not responding" types of
  1779.     messages that some have reported
  1780. pipefs.c:
  1781.     half.ttp was failing under mgr, because of a race condition:
  1782.     our select() returns "ready" for a pipe if nobody exists to
  1783.     write to it (since then a read will return immediately). half
  1784.     would make a pipe that would end up being destroyed immediately
  1785.     by mgr before it got attached to a process. Solution: pipes that
  1786.     have *never* been opened yet for writing get a special marker
  1787.     and select doesn't worry about them, only about ones that were
  1788.     once written to.
  1789. pipefs.c:
  1790.     Fixed FIONWRITE to return the correct value.
  1791. dosdir.c:
  1792.     Refuse to Frename a file with the FA_RDONLY attribute.
  1793. biosfs.c:
  1794.     Fixed bios_write to return the number of bytes successfully
  1795.     written.
  1796. bios.c:
  1797.     LAST_DEVICE was inaccurate. This could happen again, so I'm simply
  1798.     getting rid of it and leaving all errors to the BIOS.
  1799. pipefs.c:
  1800.     Make sure the FA_RDONLY attribute is sensible (i.e. unidirectional
  1801.     pipes that don't have a writer can still be written to).
  1802. filesys.c:
  1803.     Fixed relpath2cookie so that it doesn't *always* follow symlinks
  1804.     (it only should when lastname == follow_links)
  1805. dosfile.c:
  1806.     If the FA_RDONLY bit is set on the file, even the superuser should
  1807.     be denied access for writing.
  1808. dosfile.c:
  1809.     Requiring write permission for Fdatime is a Bad Idea, since GEMDOS
  1810.     doesn't; so now MiNT doesn't either.
  1811. tosfs.c, filesys.c:
  1812.     Fixed a bug with media changes (Fsfirst would sometimes try to close a
  1813.     directory that had already been automatically closed by a media change).
  1814.  
  1815. PATCHLEVEL18::
  1816.  
  1817. main.c:
  1818.     Fixed the machine type detection code; it needs to run before
  1819.     biosfs is initialized, i.e. before init_filesys().
  1820. main.c:
  1821.     Provide a configuration file so that users can automatically
  1822.     setup symbolic links and can change their init program.
  1823. biosfs.c:
  1824.     Allow rename on bios devices, so people who want terminals called
  1825.     "ttyX" instead of "modemX" can do so.
  1826. dosdir.c:
  1827.     Flink shouldn't need write permission on the destination
  1828.     directory, only the source.
  1829. dosfile.c:
  1830.     Added FSTAT function for Fcntl, to allow a better version of
  1831.     fstat() for the library.
  1832. dosfile.c:
  1833.     Add code to fcntl to automatically convert MiNT 0.8 O_NDELAY
  1834.     into MiNT 0.9 O_NDELAY. This is a temporary measure only,
  1835.     to let older versions of mgr continue to work for a while.
  1836. filesys.c:
  1837.     Symbolic links with relative paths were always failing with
  1838.     ELOOP. Oops! (Thanks to Stephen Henson for catching this.)
  1839. file.h, tosfs.c, dosfile.c:
  1840.     Added a new flag, FS_NOXBIT, to control whether or not the
  1841.     file system has a sensible notion of execute permission.
  1842.     This removes an ugly check for &tos_filesys.
  1843. mint.h,util.c,mem.c:
  1844.     Added a compile time option, JUNK_MEM, to deliberately fill
  1845.     the memory MiNT acquires with garbage; this is for debugging
  1846.     (to help track down silly failures to initialize memory) and
  1847.     not for production code.
  1848. proc.c:
  1849.     Fixed a typo in init_proc() that was causing memory not to
  1850.     be initialized to 0 correctly. (Thanks are due to Stephen
  1851.     Usher for catching this one.)
  1852. tosfs.c:
  1853.     Added a tos_rewinddir that works.
  1854. file.h:
  1855.     Added blocks and blksize fields to the XATTR structure, and
  1856.     provided a few extra reserved fields for future expansion.
  1857.     (Also: re-arranged some fields to match what the gcc library
  1858.     already has.)
  1859. file.h, main.c:
  1860.     Add sleep, wake, and wakeselect to the kernel info structure;
  1861.     some device drivers will need these.
  1862. biosfs.c:
  1863.     Make nodskchng do a Getbpb on the (non-existent) device; the officially
  1864.     documented way of forcing a disk change requires this.
  1865. file.h,filesys.c,*fs.c:
  1866.     Remove the "flag" argument from the dskchng function, and
  1867.     have the kernel check Rwabs for E_CHNG; this should save
  1868.     a lot of duplication in user file systems, since everyone
  1869.     really has to do this anyways.
  1870. dosdir.c:
  1871.     Make sure that Fsfirst names can be null-terminated.
  1872. filesys.c:
  1873.     Oops: a misplaced bracket in disk_changed was causing
  1874.     write-protected disks to always appear to have changed!
  1875. tosfs.c:
  1876.     Made it illegal to delete or truncate an open file.
  1877.  
  1878. PATCHLEVEL17::
  1879.  
  1880. version.h:
  1881.     I think we can call this version an "alpha" one, now. No more
  1882.     major features remain to be added (fingers crossed, here).
  1883. filesys.c,dosdir.c,*fs.c,file.h:
  1884.     Media change detection code; this is now the kernel's
  1885.     responsibility. This necessitated an additional function
  1886.     for file systems; I hope this is the last one.
  1887. main.c,biosfs.c:
  1888.     Check what kind of machine we're on, and adjust what devices are
  1889.     present accordingly. The rs232 file has been renamed to "modem1".
  1890.     WARNING: This will break existing code that uses the name "rs232".
  1891. filesys.c:
  1892.     Code for loading file systems (finally!)
  1893. bios.c,context.s:
  1894.     Made Rwabs, Getbpb, and Mediach save registers (since device
  1895.     drivers often don't, and loadable file systems will be calling
  1896.     these directly).
  1897. main.c:
  1898.     Implemented the "struct kerinfo" to pass information to loadable
  1899.     file systems.
  1900. filesys.c:
  1901.     Re-wrote path2cookie to provide for symbolic links; a new routine
  1902.     (relpath2cookie) helps us out.
  1903. unifs.c:
  1904.     Code for creating, reading, and deleting symbolic links.
  1905. *fs.c, dosfile.c, file.h:
  1906.     Changed the way file opens and creates are done; the former
  1907.     (*getdev) routine for file systems has been split into
  1908.     (*creat) and (*getdev), both of which are quite a bit simpler.
  1909.     This whole scheme is clearer, less work for the file system,
  1910.     and will support symbolic links much better.
  1911. various places:
  1912.     Add security checks. This is still pretty sad, but at least it
  1913.     can provide one with a modicum of protection against silly
  1914.     mistakes.
  1915. dosfile.c:
  1916.     Require write permission on a file before changing its date via
  1917.     Fdatime.
  1918. tosfs.c:
  1919.     Cleaned up and streamlined a bit, and fixed tos_readlabel.
  1920. *fs.c,dosdir.c,file.h:
  1921.     Changed the file system "getxattr", "chmode", "chown", and
  1922.     "chattr" functions to take a single file cookie instead of a
  1923.     (directory, name) pair. This should make most uses of these
  1924.     functions (e.g. in name lookups) more efficient. Also,
  1925.     changed the readdir() function to return a file cookie to go
  1926.     along with the newly read file name.
  1927. main.c:
  1928.     If "init.prg" isn't found, try starting GEM instead.
  1929. unifs.c:
  1930.     Re-arranged to allow for symbolic links.
  1931. filesys.c:
  1932.     Implemented some media change routines.
  1933. dosdir.c:
  1934.     Added Fchown and Fchmod system calls.
  1935. dosdir.c:
  1936.     Added security check for Fattrib().
  1937.  
  1938. PATCHLEVEL16::
  1939.  
  1940. lots of places:
  1941.     Try to make TRACE() and DEBUG() messages more useful for people
  1942.     who don't know the internals of the kernel, and who just want to
  1943.     debug their own programs.
  1944. dosdir.c:
  1945.     Added Flink, Fsymlink, Freadlink, and Dcntl system calls.
  1946. *fs.c,file.h:
  1947.     Added a new mode to Dpathconf() to determine whether the
  1948.     file system uses DOS type file naming conventions, ordinary
  1949.     Unix type, or _POSIX_NO_TRUNC type.
  1950. file.h:
  1951.     Add an "fscntl" field to the file system structure.
  1952. tosfs.c:
  1953.     Fix the mode values returned from getxattr() (regular files
  1954.     have type S_IFREG, not S_IFMT).
  1955. proc.c:
  1956.     Zero the child's srchdta field after fork_proc(); otherwise,
  1957.     the accounting for Fsfirst/Fsnext can get messed up. Thanks
  1958.     again to S. Henson.
  1959. mem.c:
  1960.     As Steve Henson pointed out, resetting the effective user and
  1961.     group id's in exec_region is probably a Bad Idea.
  1962. dosdir.c:
  1963.     Change Dopendir/Dclosedir to use umalloc and ufree instead of
  1964.     kmalloc and kfree.
  1965.  
  1966. PATCHLEVEL15::
  1967.  
  1968. dosdir.c:
  1969.     When terminating, clean up after any Fsfirst/Fsnext sequences that
  1970.     didn't go to completion.
  1971. tosfs.c:
  1972.     Streamlined garbage collection code, and also corrected a bug in
  1973.     which file indices used in directory searches could be garbage
  1974.     collected.
  1975. file.h, *fs.c:
  1976.     Add symlink and hard link functions.
  1977. pipefs.c:
  1978.     Make FIONWRITE work again (a line was accidentally deleted).
  1979.     Make sure that Fselect() will select any pipes that have been
  1980.     closed.
  1981. dossig.c:
  1982.     Put back the user id check in Pkill.
  1983. dos.c, proc.c:
  1984.     Make sure that the "euid" and "egid" fields are set with
  1985.     the Psetuid and Psetgid calls. Also, make sure the fields
  1986.     are reset after an exec.
  1987. mem.c:
  1988.     Make exec_region shrink the process 'mem' and 'addr' tables
  1989.     to the default again if extra regions had been allocated.
  1990. dosmem.c:
  1991.     Get rid of the magic number "100", and introduce a maximum user
  1992.     settable priority MAX_NICE so that the kernel can make sure
  1993.     that a process that needs to run (e.g. an aborted vfork) will
  1994.     run first by setting its priority to MAX_NICE+1.
  1995. proc.c:
  1996.     Make sure the initial process memory tables are zeroed.
  1997. proc.c:
  1998.     Adjust the process scheduling algorithm (yet again!). Also,
  1999.     rename "nice_count" to "curpri".
  2000. dosdir.c,dos.c:
  2001.     Added Dopendir, Dreaddir, Drewinddir, Dclosedir system calls.
  2002. *fs.c:
  2003.     Made readdir return a file index (inode number) if it's not
  2004.     doing a TOS mode search.
  2005. biosfs.c:
  2006.     PHYSCONS is such an ugly name; CONSOLE makes more sense.
  2007.  
  2008. PATCHLEVEL14::
  2009.  
  2010. mem.c:
  2011.     Allow the kernel to dynamically allocate memory region
  2012.     descriptors if it runs out; also, increase the number that
  2013.     it starts with by default.
  2014. util.c:
  2015.     Made it harmless to call kfree with a NULL argument.
  2016. proc.h,mem.c,dosmem.c,proc.c:
  2017.     Eliminate the 64 region per process limit, by making the "mem"
  2018.     and "addr" arrays dynamically allocated.
  2019. proc.c:
  2020.     Change the code for selecting which process to run next; if more
  2021.     than one process is on the ready queue, we use a per-process
  2022.     counter to prevent high priority processes from hogging all the
  2023.     time.
  2024. dosmem.c:
  2025.     Release a process' controlling terminal (by setting it's process
  2026.     group back to 0) if the process is a process group leader and
  2027.     is exiting.
  2028. dosfile.c,tty.c,*fs.c:
  2029.     Made do_open set terminals up correctly on open/close, and
  2030.     handle assigning process groups to them. Also, made the terminal's
  2031.     process group be set automatically on Fforce(-1,...).
  2032. main.c,timeout.c:
  2033.     Added AKP's code for better resolution of time usage.
  2034. DELETED FILES:
  2035.     xlate.c, xlate32.s, newdisk.s
  2036. everywhere:
  2037.     Removed all references to NEED_TRANSLATION. This is getting to be a
  2038.     pain to maintain, and nobody seems to actually use it.
  2039. *fs.c:
  2040.     Fixed the ENAMETOOLONG detection code in readdir (thanks, Steve!).
  2041. timeout.c:
  2042.     New function, nap, for processes that are in busy loops waiting for
  2043.     an event that probably won't happen for a while (e.g. waiting for
  2044.     the user to hit a key); use e.g. nap(60) to sleep for 60 milliseconds
  2045.     instead of yield().
  2046. mem.c:
  2047.     create_env() should use the value from the current process' basepage,
  2048.     since this may *not* be the same as the environment the process
  2049.     was actually started with
  2050. dosfile.c:
  2051.     Make Fcntl(fh, arg, F_SETFL) leave the file sharing mode alone as well
  2052.     as the read/write mode.
  2053. unifs.c:
  2054.     Change the name "fifo" to "pipe"; change "drva", "drvb" etc. into just
  2055.     "a", "b" etc.
  2056. dosmem.c:
  2057.     Make it possible to provide a name with Pexec mode 104. Provide a new
  2058.     mode 106 that starts a process in the background and automatically
  2059.     detaches the process TPA from the parent's memory.
  2060.  
  2061. PATCHLEVEL13::
  2062.  
  2063. biosfs.c:
  2064.     Made sure that tty_getchar() won't see (long) negative values
  2065.     returned from a successful read, by clearing the high bit
  2066.     of read values.
  2067. *fs.c,atarierr.h:
  2068.     Made file systems responsible for dealing with "." and "..";
  2069.     introduced a new (fake) EMOUNT error to indicate when ".." is
  2070.     found in a root directory (this is for the benefit of the
  2071.     unified file system code)
  2072. dosdir.c,filesys.c:
  2073.     Changes to allow for the unified file system.
  2074. unifs.c, makefile:
  2075.     New file, for a "unified" file system.
  2076. filesys.c, *fs.c:
  2077.     Renamed denyaccess() to denyshare().
  2078. dosdir.c:
  2079.     Changed getname() to work from the root down instead of from
  2080.     the directory up; this should work better for mounting and
  2081.     symbolic links.
  2082. dosdir.c:
  2083.     Moved the check for a drive specifier (A:\FOO) in Dsetpath to
  2084.     where it should have been, namely before any use of the drive.
  2085. biosfs.c,pipefs.c:
  2086.     In opendir, make sure the directory structure is properly
  2087.     initialized.
  2088. dos.c:
  2089.     Changed snice and srenice to pnice and prenice; also modified the
  2090.     return values to be 16 bit (for the normal case), and 32 bit
  2091.     negative for errors, so that low priority processes can be
  2092.     distinguished from errors.
  2093. debug*.c:
  2094.     The Bconstat() check for the printer should be applied to device
  2095.     0, not 1.
  2096.  
  2097. PATCHLEVEL12::
  2098.  
  2099. dosdir.c,filesys.c:
  2100.     Re-wrote Fsfirst/next to use opendir/readdir/closedir. Re-wrote
  2101.     the pat_match function to work correctly (at least, according
  2102.     to the TOS rules :-).
  2103. *fs.c, file.h:
  2104.     Added opendir/readdir/closedir calls to file systems to allow
  2105.     more general file systems; also changed getattr into getxattr
  2106.     (again, to allow file systems with extra goodies), setattr into
  2107.     chattr, and added chown and chmod calls. Deleted sfirst/snext
  2108.     file system entry points, and the Xsfirst/Xsnext system calls.
  2109. *fs.c,file.h,dosfile.c,dosdir.c:
  2110.     Changed file systems to have separate calls for reading/writing
  2111.     volume labels. Added checks to Fattrib and Fcreate to avoid creating
  2112.     files with bad attributes (e.g. FA_LABEL or FA_DIR and anything
  2113.     else).
  2114. main.c:
  2115.     Change the definition of tosvers so that TOS 1.0 corresponds
  2116.     to tosvers == 0x100, not tosvers == 0. Also, clean up the
  2117.     code for testing TOS versions.
  2118.     WARNING: This may break RAM TOS versions. I doubt it matters.
  2119. bios.c,main.c:
  2120.     Always set the kbshft variable, so that kbshift is more
  2121.     efficient.
  2122. dos.c:
  2123.     Eliminated the old code that allowed Super(-1L) to work (GEMDOS
  2124.     doesn't support this, so why should MiNT?)
  2125. dos.c:
  2126.     Added GEMDOS date and time routines, and made sure that
  2127.     datestamp and timestamp are initialized properly when
  2128.     MiNT is started.
  2129. mem.c:
  2130.     Increased the size of the buffer used for reading relocation
  2131.     information in load_region.
  2132. *fs.c, dosfile.c:
  2133.     Changed the filesystem getdev call to return a file cookie
  2134.     (this saves a call to lookup on every open).
  2135. *fs.c, filesys.c:
  2136.     Eliminated static variables, changed all routines that used to
  2137.     return pointers to cookies to take an extra argument (a pointer
  2138.     to the place to put the result).
  2139. tosfs.c:
  2140.     Turn O_COMPAT sharing mode into O_DENYNONE (after making other
  2141.     appropriate changes to the access modes).
  2142. debugold.c:
  2143.     Updated to reflect changes in debug.c.
  2144. debug.c:
  2145.     Added calls to va_end where appropriate.
  2146. debug.c:
  2147.     Before, hitting a key paused debugging output; now, debug_ws
  2148.     checks the device that output is going to, so that e.g. if it's
  2149.     going to the MIDI port, the output is paused when a character
  2150.     arrives on the MIDI port.
  2151. mem.c:
  2152.     Made exec_region use O_DENYNONE sharing mode instead of O_DENYW
  2153.  
  2154. PATCHLEVEL11::
  2155.  
  2156. dosfile.c:
  2157.     Forbid closing file handles < 0; this will prevent accidental
  2158.     destruction of the BIOS handles.
  2159. dosfile.c:
  2160.     Change Fbiosdev to be MIDI specific, rename it to Fmidipipe, and
  2161.     move it to dosfile.c. The semantics are a bit different, too;
  2162.     see the comments in dosfile.c.
  2163. bios.c:
  2164.     Really fix the MIDI output routines, this time. (sigh)
  2165.  
  2166. PATCHLEVEL10::
  2167.  
  2168. signal.c:
  2169.     Fixed a typo in the message printed when bombs occur. Also,
  2170.     removed the copying of data from the supervisor stack to the
  2171.     BIOS area -- this was causing very strange problems, and it's
  2172.     not clear that the info would be useful under MiNT anyway.
  2173.     Finally, all this is only supposed to happen for certain
  2174.     signals, not for any random killings.
  2175.  
  2176. PATCHLEVEL9::
  2177.  
  2178. file.h, *fs.c:
  2179.     Changed the definition of the DTA buffer to free up space for
  2180.     user/group id fields and an extended attributes field. Made
  2181.     sfirst/snext use the 'aux' field of the directory cookie
  2182.     as an index.
  2183. dos.c:
  2184.     Fixed Talarm() to return the number of seconds left before an
  2185.     alarm, not the number of milliseconds.
  2186. dosdir.c:
  2187.     New system calls, Xsfirst/Xsnext, for accessing file systems
  2188.     with long (>12 character) names.
  2189. signal.c:
  2190.     Fill in the BIOS post-mortem dump error correctly after
  2191.     bus errors, address errors, etc. Also, made the "bomb" replacement
  2192.     routine give the process basepage address and program counter,
  2193.     as suggested by AKP.
  2194. tosfs.c:
  2195.     Fixed the tos_lookup bug that was causing bus errors during file
  2196.     opens.
  2197.  
  2198. PATCHLEVEL8::
  2199.  
  2200. tosfs.c:
  2201.     Made opens with O_COMPAT sharing mode always open for both reading
  2202.     and writing; this is so broken TOS programs that write to read-only
  2203.     handles will continue to work.
  2204. file.h, tty.c:
  2205.     Added TIOCGWINSZ/TIOCSWINSZ and the appropriate window size
  2206.     fields to the tty structure to support them.
  2207. dossig.c:
  2208.     Remove user id checks (for now). Make it impossible to catch
  2209.     SIGSTOP.
  2210. bios.c:
  2211.     Fix so Bconout returns a value (it really should, at least for
  2212.     the printer).
  2213. mem.c:
  2214.     Don't context switch and retry alloc_region; file systems and some
  2215.     parts of the kernel aren't expecting the context switch, and besides
  2216.     the previous change makes this tactic less likely to be helpful.
  2217. mem.c:
  2218.     Don't allocate *all* of the memory to the basepage, leave some for
  2219.     the kernel and other programs.
  2220. pipefs.c:
  2221.     Add a check for broken pipes when a program is trying to write
  2222.     atomically.
  2223. dosmem.c:
  2224.     Block job control signals during a vfork instead of ignoring
  2225.     them; this will result in the "right" thing happening after
  2226.     the exec (since the blocked signals will then be unblocked).
  2227. tosfs.c:
  2228.     Eeek! Fixed a very serious bug in the garbage collection
  2229.     routines ("i" was used where "j" should have been in a loop:
  2230.     result: things could be garbage collected that shouldn't
  2231.     have been!)
  2232. procfs.c:
  2233.     changed the return value from "dfree" to more accurately indicate
  2234.     the free memory in the system, and to also provide information
  2235.     about the smallest unit of allocable memory (currently a longword)
  2236. *fs.c,dosfile.c,dosdir.c,filesys.c:
  2237.     instead of passing fcookies to file systems, pass pointers to
  2238.     them; this should slightly improve efficiency, and greatly
  2239.     improve portability (otherwise, compilers used to make
  2240.     installable file systems would have to have the same structure
  2241.     passing/return conventions as the one that compiled the kernel)
  2242. dos.c:
  2243.     new system call, Srenice(), to change priority of a different
  2244.     process
  2245. dos.c:
  2246.     change Fbiosdev() system call to take a pid argument
  2247. proc.h, dosfile.c:
  2248.     add per-file descriptor flags for things like "close on exec"
  2249. file.h, mem.c, *fs.c:
  2250.     new file open mode, O_EXEC, for the kernel to use in Pexec
  2251. rendez.c, dos.c:
  2252.     new file from AKP to implement a simple and fast message based
  2253.     IPC; the new system call is Pmsg. Also note that the syscall number
  2254.     of Pmsg is 0x125, which used to be used by Fbiosdev; Fbiosdev has
  2255.     been moved to 0x126.
  2256. filesys.c:
  2257.     applied Steve Henson's patches to improve path2cookie's handling of
  2258.     repeated slashes
  2259. proc.h:
  2260.     MAX_OPEN should be 32, not 20!
  2261. mem.c:
  2262.     Ignore "close on exec" flag for the standard handles (for some
  2263.     reason, bash manages to set these for 0,1,2; this is probably a bug
  2264.     in the port of bash, but on the other hand it's unlikely that
  2265.     anyone would really want to close the standard handles when doing
  2266.     an exec, anyway)
  2267. tty.c:
  2268.     Fixed RAW mode reads on terminals so that they're no longer
  2269.     terminated by '\r' or '\n' (and so that pty slaves aren't forced
  2270.     to read just 1 character at a time). Thanks to AKP for catching
  2271.     this.
  2272.  
  2273. PATCHLEVEL7::
  2274.  
  2275. *fs.c:
  2276.     Cleaned up the Dpathconf() return values to better reflect
  2277.     reality, and made the code a little easier to understand.
  2278. bios.c:
  2279.     Adjust bcostat() parameters so that V:\MIDI and V:\KBD call
  2280.     the right (wrong) device (BIOS devices 3 and 4 are mixed
  2281.     up for Bcostat).
  2282. dosmem.c:
  2283.     Made sure that Malloc(0L) always returns a NULL pointer.
  2284. dosfile.c:
  2285.     Made Fclose() of handles 0, 1, 2, and 3 restore the default
  2286.     mappings. (Apparently TOS _does_ do this, after all.)
  2287. bios.c:
  2288.     AHDI 3.1 added a new parameter to Rwabs; we now pass that
  2289.     along too.
  2290. timeout.c:
  2291.     Make canceltimeout() free the memory used by the time out
  2292.     descriptor. (another Fselect bug)
  2293. signal.h:
  2294.     Removed ABORT and ALARM from list of signals that are reported
  2295.     by the kernel.
  2296. proc.c:
  2297.     Moved checkalarms() to do_wakeup_things() so that short time outs
  2298.     will be properly recognized; this fixes a nasty bug in Fselect.
  2299.  
  2300. PATCHLEVEL6::
  2301.  
  2302. pipefs.c:
  2303.     Make writes of 1024 or fewer bytes atomic. Also, increase pipe
  2304.     buffer size to 4096.
  2305. tosfs.c:
  2306.     Make O_EXCL and O_TRUNC bits useful.
  2307. tosfs.c,pipefs.c,filesys.c:
  2308.     Fully implement file sharing modes for tosfs and pipefs. A new
  2309.     routine (denyaccess) is provided in filesys.c for checking
  2310.     file open modes and determining conflicts (if any).
  2311. pipefs.c:
  2312.     If a process writes on a broken pipe while ignoring SIGPIPE,
  2313.     the write now returns -1. (Thanks, Stephen)
  2314. debug.c, bios.c:
  2315.     Applied bammi's patches to PATCHLEVEL 5 to fix some typos.
  2316.  
  2317. PATCHLEVEL5::
  2318.  
  2319. debug.c, bios.c:
  2320.     Applied AKP's debugging output patches, to allow TRACE and
  2321.     DEBUG output to go to serial ports as well as the printer.
  2322.  
  2323. PATCHLEVEL4::
  2324.  
  2325. dos.c:
  2326.     NEW SYSTEM CALL: Fbiosdev() to control redirection of BIOS
  2327.     devices.
  2328. bios.c, proc.h:
  2329.     Added binput and boutput arrays to allow for per-process redirection
  2330.     of BIOS device input and output to GEMDOS file handles.
  2331. biosfs.c:
  2332.     Changed "mdi" to "midi".
  2333.     WARNING: this change could (I suppose) break existing code.
  2334. util.c:
  2335.     Added a umalloc() function to allocate memory in user space,
  2336.     and modified the various sfirst routines to use this to
  2337.     allocate space for patterns instead of kmalloc.
  2338. dosdir.c,file.h:
  2339.     Added an FS_CASESENSITIVE flag to control conversion of file
  2340.     names to upper case for TOS domain processes.
  2341. dosdir.c, *fs.c:
  2342.     Made sfirst/snext functions take an extra argument, the length
  2343.     of the file name field in the DTA buffer (so that we can provide
  2344.     Xsfirst/Xsnext functions that can work with longer names)
  2345. mem.c:
  2346.     Fixed exec_region so that the close-on-exec flag works.
  2347. filesys.c:
  2348.     Made path2cookie take the name of the place to store the last
  2349.     component of the path name as an argument (instead of always
  2350.     storing it in the global variable temp1).
  2351. biosfs.c:
  2352.     Added code for O_NDELAY on bios devices.
  2353. tosfs.c:
  2354.     Cleaned up garbage collection a bit -- I hope this fixes the
  2355.     problems with running out of indices.
  2356. filesys.c:
  2357.     Returned the special parsing code for CON:, AUX:, etc.
  2358. file.h:
  2359.     OOPS! The flock structure was missing an element (l_whence). It
  2360.     was added.
  2361.     WARNING: This change may break existing code.
  2362. util.c:
  2363.     Made kmalloc take a long parameter, just in case installable
  2364.     file systems need lots of memory.
  2365. file.h, atarierr.h, pipefs.c:
  2366.     Made file modes compatible with _FLK specification. Also
  2367.     added the ELOCKED and ENSLOCK errors to atarierr.h, and made
  2368.     pipefs.c use ELOCKED instead of EACCDN.
  2369.     WARNING: this *will* break existing programs. In particular, mgr
  2370.     no longer works :-( because O_NDELAY has changed. (this was
  2371.     temporarily patched)
  2372. dos.c,dosfile.c:
  2373.     Added Flock() system call.
  2374. mem.c:
  2375.     Made the initial user stack pointer low enough so that syscall.s
  2376.     won't run into the end of memory if the user makes a system call
  2377.     right away and doesn't push many parameters (the code in syscall
  2378.     always tries to copy a large chunk of the caller's stack).
  2379. dosmem.c:
  2380.     Made vfork'd processes ignore job control signals (thanks to
  2381.     Stephen for pointing out how some shells rely on BSD's similar
  2382.     behaviour).
  2383.  
  2384. PATCHLEVEL3::
  2385.  
  2386. dosfile.c, file.h, *fs.c, bios.c:
  2387.     Changed f_select to use the new timeout mechanism, and provided
  2388.     routines in device drivers to wake up selecting processes.
  2389. proc.h:
  2390.     New queue, SELECT_Q, for processes doing "select", to match above
  2391.     changes
  2392. dos.c:
  2393.     Changed t_alarm to use the new timeout mechanism.
  2394. timeout.c,proc.h:
  2395.     Added a new "timeout" mechanism, so that processes can specify
  2396.     an action to be taken when a counter expires.
  2397. various places:
  2398.     Cleaned up TRACE and DEBUG output
  2399. proc.c:
  2400.     Set current directory based on the TOS current directory
  2401.     when MiNT is starting up.
  2402. debug.c:
  2403.     Added AKP's "trace" mode patch
  2404. filesys.c:
  2405.     Replaced strcmp() for . and .. with direct comparisons, again
  2406.     per AKP.
  2407. tosfs.c:
  2408.     Improved search performance a bit (indicies are now allocated
  2409.     at the beginning of the list, instead of at the end)
  2410. main.c, version.h:
  2411.     Introduced PATCHLEVEL for alpha and beta test versions    
  2412. util.c:
  2413.     Made kmalloc() try the kernel memory region first for small
  2414.     regions, to cut down fragmentation of the user's memory space
  2415. proc.h:
  2416.     Made the system stacks bigger, to compensate for the bigger
  2417.     contexts now that there's FPU support
  2418. dosmem.c:
  2419.     Fixed bug with Pexec mode 6 (thanks again, AKP)
  2420. biosfs.c:
  2421.     Changed FD0 to STDIN, FD1 to STDOUT, etc.
  2422.     WARNING: this change could break existing code
  2423. filesys.c:
  2424.     '/' is no longer a directory separator for MiNT domain processes
  2425.     (few were using it, and it simplifies things to be able to
  2426.     assume '\' is the only such separator).
  2427.     WARNING: this change could break existing code
  2428. all over the place:
  2429.     Changed the way directories/files are stored. We now have
  2430.     "file cookies" for directories, instead of strings. We
  2431.     also now have two directories per drive per process
  2432.     (a root and current).
  2433. minixfs.c:
  2434.     Removed from the main compile, and MINIX_FS symbol was also
  2435.     removed -- this will be a loadable file system someday
  2436.     (soon, I hope).
  2437. various places:
  2438.     Added Alex Kiernan's patches to support compilation under
  2439.     Lattice C v5
  2440. proc.h, context.s:
  2441.     Added Alex Kiernan's FPU co-processor patches. WARNING: this
  2442.     changes the layout of the proc structure in memory, and so
  2443.     breaks "ps" and similar programs.
  2444. proc.c:
  2445.     Changed sleep() to take the wait condition as an argument; this
  2446.     means that fewer things need to know the internals of the
  2447.     PROC structure
  2448. various places:
  2449.     Added AKP's T_TOSTOP flag changes
  2450. minixfs.c:
  2451.     Changed the 8K buffer in do_change to a static variable; our
  2452.     stacks aren't *that* big!
  2453. intr.s:
  2454.     Fixed a typo that was causing serious problems with the bus
  2455.     error and other exception codes on the TT (thanks for
  2456.     catching this, Allan).
  2457. dosmem.c,signal.c:
  2458.     Corrected the GEMDOS termination vector code (the system stack
  2459.     was being corrupted if the user's code returned). Thanks to
  2460.     Julian Reschke for catching this error.
  2461. ===========================================================================
  2462. version 0.8
  2463.  
  2464. biosfs.c, pipefs.c:
  2465.     fix ^C and ^Y to send the signals to the whole process group,
  2466.     and also to make sure processes don't read these keys if
  2467.     they're turned into signals
  2468. intr.s,dossig.c:
  2469.     fix exception handlers to be more careful about the distinction
  2470.     between being in or out of the kernel
  2471. intr.s, syscall.s, main.c:
  2472.     make sure interrupts are off before changing any vectors
  2473. bios.c:
  2474.     fixed the annoying problems with CTRL-ALT-Fx sometimes leaving
  2475.     keys in the buffer
  2476. signal.c:
  2477.     forced p_sigreturn() with no signal pending to unwind the
  2478.     *whole* signal stack, in case there were multiple signals
  2479.     pending at the time the user did a longjmp() (or whatever
  2480.     prompted the Psigreturn())
  2481. dosmem.c:
  2482.     p_wait3 now supports the WUNTRACED bit; if this isn't set,
  2483.     processes stopped due to job control are *not* returned
  2484. dosmem.c:
  2485.     removed dLibs kludge -- some programs rely on p_parent being
  2486.     non-zero to tell them that they're not accessories
  2487. various places:
  2488.     cleaned up job control stuff to be more Unix like
  2489. mem.c,util.c:
  2490.     added a new memory map for the kernel -- this should ease
  2491.     the problems with programs grabbing all of available memory
  2492. mem.c,dosmem.c:
  2493.     incorporated Allan's bugfixes; alternative RAM should work now
  2494. signal.c, main.c, intr.s:
  2495.     integrated signals with normal exceptions, so that e.g.
  2496.     a bus error raises SIGBUS. This improves the survivability
  2497.     of the kernel, so that a bus error resulting from a bad
  2498.     system call parameter won't kill MiNT, just the offending
  2499.     process.
  2500. proc.c:
  2501.     kludge to let low priority processes run every so often, even
  2502.     in the presence of a high priority process that is ready to run
  2503. atarierr.h:
  2504.     ENMFIL is -49, not -47 -- so much for Abacus' docs :-)
  2505. procfs.c:
  2506.     changes to allow read/write from process space
  2507. minixfs.[ch]:
  2508.     changed lots of function parameter types to avoid promotion and
  2509.     prototype problems with 32 bit code
  2510. bios.c:
  2511.     changed IOREC to IOREC_T to avoid name conflicts with some osbind.h
  2512. biosfs.c:
  2513.     made mouse driver change the line A mouse position variables, so MGR
  2514.     will work with bigscrn and similar large screen emulators
  2515. minixfs.c:
  2516.     new version from Stephen, now supports floppies and other removable
  2517.     media
  2518. mem.c, dosmem.c, dos.c:
  2519.     added code to support new TT TOS calls Mxalloc and Maddalt, plus
  2520.     program flags for loading/mallocing in alternate memory
  2521. bios.c,biosfs.c,dosfile.c:
  2522.     changed so that bios handles 0 and 1 can be redirected just like
  2523.     handle 2 (via the new file handles -3 and -2 respectively; AUX:
  2524.     and PRN: now refer to these files, and RS232 and CENTR to the
  2525.     physical devices)
  2526. dosdir.c:
  2527.     Dsetdrv() fixed to return an error indication when one happens
  2528. dos.c:
  2529.     fixed Super() bug (thanks Stephen)
  2530. minixfs.c:
  2531.     incorporated changes to handle 1K sector sizes
  2532.  
  2533. =============================================================================
  2534. version 0.7
  2535.  
  2536. minixfs.c:
  2537.     new file, courtesy of Stephen N. Henson (olorin@tardis.cs.ed.ac.uk)
  2538.     this is still "under construction"; see minixfs.doc for more details
  2539. bios.c:
  2540.     CTRL-ALT-UNDO now raises SIGQUIT, for the benefit of people with
  2541.     foreign ROMs (some have trouble with ^\)
  2542. filesys.c:
  2543.     changed pathname resolution code so that multiple slashes in a file
  2544.     name have the same effect as single slashes. POSIX mandates this,
  2545.     and some Unix programs expect it, too
  2546. dosmem.c:
  2547.     changed do_vfork() code so that the text segment of processes is
  2548.     *not* saved in a fork() if the process has separate text, data, and
  2549.     bss segments; this saves a fair bit of memory
  2550. proc.c:
  2551.     changed the process initialization code to better deal with job
  2552.     control; also changed handle 2 to be AUX: (as under TOS) rather
  2553.     than PRN:
  2554. bios.c:
  2555.     added CTRL-ALT-F5 (show memory usage) and CTRL-ALT-F6
  2556.     (show processes)
  2557. filesys.c:
  2558.     make explicit the fact the individual file names are limited to
  2559.     14 characters
  2560. everywhere:
  2561.     change FILENAME_MAX to PATH_MAX
  2562. mem.c:
  2563.     fixed up comments and debugging/trace info for load_region
  2564. dossig.c:
  2565.     NEW SYSTEM CALL: Psigpending() returns the set of signals that
  2566.     have been sent to the process, but not yet delivered.
  2567. dos.c, dosdir.c:
  2568.     NEW SYSTEM CALLS:
  2569.     Sysconf(n) returns information about the global limits of the
  2570.     currently running version of MiNT
  2571.     Dpathconf(name, n) returns information about the file system that
  2572.     the file "name" is located on
  2573. bios.c:
  2574.     allow CTRL-ALT-C, CTRL-ALT-\, and CTRL-ALT-Z to force a SIGINT,
  2575.     SIGQUIT, or SIGTSTP, respectively, even if the terminal is in raw
  2576.     mode
  2577. various places:
  2578.     call zero() instead of bzero()
  2579. context.s,intr.s:
  2580.     changes to make MiNT TT compatible. Thanks to Allan Pratt for this!
  2581. biosfs.c, tosfs.c, pipefs.c, procfs.c:
  2582.     fsfirst/fsnext return all upper case in TOS domain now, but
  2583.     lower case (or mixed) in MiNT domain; this is to try to wean
  2584.     programmers off of the habit of assuming everything is upper case
  2585.     (and converting accordingly)
  2586. biosfs.c:
  2587.     made mouse compatible with TOS ALT-cursor keys (the Y direction was
  2588.     wrong before)
  2589. intr.s:
  2590.     IPL 7 before reboot (thanks, Allan)
  2591. version.h, main.c:
  2592.     made version numbering a bit easier (big deal)
  2593. main.c:
  2594.     AARGH! The cookie jar stuff was plain wrong (the last cookie should
  2595.     have the total number of slots, not just the ones that are free).
  2596. main.c:
  2597.     pass current environment along to init.prg, instead of forcing an
  2598.     empty environment
  2599. signal.c:
  2600.     corrected killpg() bug (wasn't checking signals, so the current
  2601.     process didn't get the signal until later)
  2602. mem.c, dosmem.c:
  2603.     made sure that all sizes would always be rounded to the nearest
  2604.     longword. Just in case they aren't, Malloc(-1L) rounds down to the
  2605.         next smallest longword.
  2606. lots of places:
  2607.     memory handling was overhauled completely; kmalloc now allocates
  2608.     memory from the same space as do m_alloc and p_exec, so there is
  2609.     no artificial constraint on the number of processes
  2610. ===========================================================================
  2611. version 0.6
  2612.  
  2613. dos.c:
  2614.     added Talarm() and Pause() system calls
  2615. bios.c, tty.c, pipefs.c:
  2616.     added real tty structures that programs can manipulate
  2617. proc.c:
  2618.     added some sanity checks for things like stack overflow
  2619. signal.c:
  2620.     revamped signal handling so that Psigreturn() no longer needs an
  2621.     argument.
  2622. dosmem.c:
  2623.     made Pexec'ing processes immune to SIGINT, SIGHUP, and SIGTSTP
  2624. intr.s:
  2625.     fixed the Psigreturn race condition bug
  2626. biosfs.c, pipefs.c, filesys.c, util.c:
  2627.     added case-insensitive string comparison routine, and modified the
  2628.     file systems to use it
  2629. bios.c, console.c:
  2630.     changed return values of status calls from 1 to -1, to be TOS
  2631.     compatible
  2632. dos.c:
  2633.     added new calls to get resource usage, and set resource limits
  2634. dosfile.c:
  2635.     added new call, f_select
  2636. signal.c:
  2637.     changed so stopped processes always have a return code of 0177
  2638. biosfs.c:
  2639.     added a fake "third button" on the mouse (you get it by holding down
  2640.     a shift key and a mouse button)
  2641.     made mouse_read return at least 1 byte
  2642. bios.c, proc.c, biosfs.c:
  2643.     added code to check for CTRL-ALT-key combinations on every
  2644.     process switch; thus, debugging, rebooting, etc. do not require
  2645.     waiting for a read from the keyboard. Also, ^C sends a SIGINT
  2646.     immediately, and ^Z (SIGTSTP) and ^\ (SIGQUIT) take effect
  2647.     right away, too.
  2648.     CTRL-ALT-DEL supported for TOS < 1.4
  2649.  
  2650. =========================================================================
  2651. version 0.5
  2652.  
  2653. First publically released version (made available for FTP as a beta test)
  2654.  
  2655.